Class Topic.Level
- java.lang.Object
-
- software.amazon.smithy.mqtt.traits.Topic.Level
-
- Enclosing class:
- Topic
public static final class Topic.Level extends java.lang.Object
Represents a level in a topic.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getContent()
Gets the content of the topic.int
hashCode()
boolean
isLabel()
Check if the level is a label.java.lang.String
toString()
-
-
-
Method Detail
-
getContent
public java.lang.String getContent()
Gets the content of the topic.Label levels do not contain the wrapping "{" and "}" characters.
- Returns:
- Returns the level value text.
-
isLabel
public boolean isLabel()
Check if the level is a label.- Returns:
- Returns true if the level is a label.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-