T - the typepublic static interface MinimalPerfectHash.UniversalHash<T>
The returned value does not need to be uniformly distributed.
| Modifier and Type | Method and Description |
|---|---|
int |
hashCode(T o,
int index,
int seed)
Calculate the hash of the given object.
|
int hashCode(T o, int index, int seed)
o - the objectindex - the hash function index (index 0 is used first, so the
method should be very fast with index 0; index 1 and so on
are only called when really needed)seed - the random seed (always the same for a hash table)