Class Topic.Level

  • Enclosing class:
    Topic

    public static final class Topic.Level
    extends java.lang.Object
    Represents a level in a topic.
    • Constructor Summary

      Constructors 
      Constructor Description
      Level​(java.lang.String value)  
      Level​(java.lang.String value, boolean isLabel)  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Level

        public Level​(java.lang.String value,
                     boolean isLabel)
        Parameters:
        value - The value of the topic.
        isLabel - True if the value is a label.
      • Level

        public Level​(java.lang.String value)
        Parameters:
        value - The value of the topic.
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object