K
- type for hashCode and first equals parameterT
- type for second equals parameterpublic interface Hash<K,T>
Storage
.Modifier and Type | Method and Description |
---|---|
boolean |
equals(K k,
T t)
Compare two instances for semantic or lookup equality.
|
int |
getHashCode(K k)
Get hashcode for given instance, based on some inner state of the
instance.
|
int getHashCode(K k)
k
- the object to compute hashcode forboolean equals(K k, T t)
Storage
.k
- the object to comparet
- the object to compare