Class Topic.Level

java.lang.Object
software.amazon.smithy.mqtt.traits.Topic.Level
Enclosing class:
Topic

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

    • Level

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

      public Level(String value)
      Parameters:
      value - The value of the topic.
  • Method Details

    • getContent

      public 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 String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object