Class StringValue

  • All Implemented Interfaces:
    java.lang.Comparable<FieldValue>

    public class StringValue
    extends FieldValue
    A FieldValue instance representing a string value.
    • Constructor Detail

      • StringValue

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

      • getValue

        public java.lang.String getValue()
        Returns the String value
        Returns:
        the String value of this object
      • equals

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

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

        public int compareTo​(FieldValue other)
      • toJson

        public java.lang.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.