public interface DataToken extends TokenValued, Serializable
TokenValued object. In addition to adding immutability
to the TokenValued contract, implementations of DataToken also
implement a number of useful features:
Comparable interfaceObject.hashCode()
consistent with the values returned by TokenConverter.Object.equals() which considers null valued
tokens equal, as opposed to to different (as in TokenComparator).DataTokens a useful mechanism for general
in-memory storage of token values.DataRegister| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether another object is equal to this token.
|
int |
hashCode()
Returns a hash code for the token.
|
String |
toString()
Returns a string representation of the token's value.
|
getType, isNullboolean equals(Object obj)
TokenComparator.equal(TokenValued,TokenValued)
but makes it possible to store DataTokens in Maps.int hashCode()
TokenConverter.asHashCode(TokenValued).Copyright © 2024 Actian Corporation. All rights reserved.