public static class MinimalPerfectHash.LongHash extends java.lang.Object implements MinimalPerfectHash.UniversalHash<java.lang.Long>
| Constructor and Description |
|---|
LongHash() |
| Modifier and Type | Method and Description |
|---|---|
int |
hashCode(java.lang.Long o,
int index,
int seed)
Calculate the hash of the given object.
|
public int hashCode(java.lang.Long o,
int index,
int seed)
MinimalPerfectHash.UniversalHashhashCode in interface MinimalPerfectHash.UniversalHash<java.lang.Long>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)