Class Text

    • Constructor Detail

      • Text

        public Text​(String value)
        Construct a new Text object with the specified value. This object cannot be modified after construction.
    • Method Detail

      • getValue

        public String getValue()
        Return the value of this Text. Can be null.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(@Nullable Object object)
        Two Text objects are considered equal if their content strings match exactly.
        Overrides:
        equals in class Object
      • toString

        public String toString()
        Returns the first 70 characters of the underlying string.
        Overrides:
        toString in class Object