|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Hash<K,T>
An interface allowing injection of hashcode and equality implementation
based on some inner state of an object for a set.
It supports two type parameters to implement effective foreign key implementation
inside (@link Storage}, but for basic use, both type parameters are the same.
For use cases, see Storage.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
int getHashCode(K k)
k - the object to compute hashcode for
boolean equals(K k,
T t)
Storage.
k - the object to comparet - the object to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||