public static interface Hash.Strategy<K>
Note that the equals() method of a strategy must
be able to handle null, too.
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(K a,
K b) |
Returns true if the given objects are equal with respect to this hash strategy.
|
int |
hashCode(K o) |
Returns the hash code of the specified object with respect to this hash strategy.
|
int hashCode(K o)
o - an object (or null).