public static final class Topic.Level
extends java.lang.Object
Constructor and Description |
---|
Level(java.lang.String value) |
Level(java.lang.String value,
boolean isLabel) |
Modifier and Type | Method and 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() |
public Level(java.lang.String value, boolean isLabel)
value
- The value of the topic.isLabel
- True if the value is a label.public Level(java.lang.String value)
value
- The value of the topic.public java.lang.String getContent()
Label levels do not contain the wrapping "{" and "}" characters.
public boolean isLabel()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object