public class Topic extends Object implements Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
static Topic |
asTopic(String s)
Factory method
|
boolean |
equals(Object obj) |
Topic |
exceptHeadToken() |
List<Token> |
getTokens() |
int |
hashCode() |
Token |
headToken() |
boolean |
isEmpty() |
boolean |
isValid() |
boolean |
match(Topic subscriptionTopic)
Verify if the 2 topics matching respecting the rules of MQTT Appendix A
|
String |
toString() |
public Topic(String topic)
public static Topic asTopic(String s)
s - the topic string (es "/a/b").public Token headToken()
public boolean isEmpty()
public Topic exceptHeadToken()
public boolean isValid()
public boolean match(Topic subscriptionTopic)
subscriptionTopic - the topic filter of the subscriptionCopyright © 2021. All rights reserved.