Interface StringEncodedValue

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int compareTo​(EncodedValue o)
      Compare this StringEncodedValue to another EncodedValue.
      boolean equals​(java.lang.Object o)
      Compares this StringEncodedValue to another StringEncodedValue for equality.
      java.lang.String getValue()
      Gets the string value.
      int hashCode()
      Returns a hashcode for this EncodedStringValue.
    • Method Detail

      • getValue

        @Nonnull
        java.lang.String getValue()
        Gets the string value.
        Returns:
        the string value
      • hashCode

        int hashCode()
        Returns a hashcode for this EncodedStringValue. This hashCode is defined to be the following:
         
         int hashCode = getValue().hashCode();
         
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code value for this EncodedStringValue
      • equals

        boolean equals​(@Nullable
                       java.lang.Object o)
        Compares this StringEncodedValue to another StringEncodedValue for equality. This StringEncodedValue is equal to another StringEncodedValue if the values returned by getValue() are equal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - The object to be compared for equality with this StringEncodedValue
        Returns:
        true if the specified object is equal to this StringEncodedValue
      • compareTo

        int compareTo​(@Nonnull
                      EncodedValue o)
        Compare this StringEncodedValue to another EncodedValue. The comparison is first done on the return values of getValueType(). If the other value is another StringEncodedValue, the return values of getValue() are compared.
        Specified by:
        compareTo in interface java.lang.Comparable<EncodedValue>
        Parameters:
        o - The EncodedValue to compare with this StringEncodedValue
        Returns:
        An integer representing the result of the comparison