Class StringValue

    • Constructor Detail

      • StringValue

        public StringValue​(String value)
        Creates a new instance
        Parameters:
        value - the value to use
    • Method Detail

      • getValue

        public String getValue()
        Returns the String value
        Returns:
        the String value of this object
      • hashCode

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

        public int compareTo​(FieldValue other)
      • toJson

        public String toJson​(JsonOptions options)
        Description copied from class: FieldValue
        Returns a JSON representation of the value using the options, if specified.
        Overrides:
        toJson in class FieldValue
        Parameters:
        options - configurable options used to affect the JSON output format of some data types. May be null.
        Returns:
        the JSON representation of this value.