Interface DataToken

    • Method Detail

      • equals

        boolean equals​(Object obj)
        Indicates whether another object is equal to this token. Two null valued tokens are considered equal. This differs from the behavior of TokenComparator.equal(TokenValued,TokenValued) but makes it possible to store DataTokens in Maps.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare
        Returns:
        true if the other object is a token of the same type and contains the same value, false otherwise.
      • hashCode

        int hashCode()
        Returns a hash code for the token. This value is guaranteed to be consistent with that returned by TokenConverter.asHashCode(TokenValued).
        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for the token
      • toString

        String toString()
        Returns a string representation of the token's value. This value is guaranteed to be consistent with that returned by TokenConverter.asString(TokenValued}.
        Overrides:
        toString in class Object
        Returns:
        a string representation of the contained value