public interface Hasher<V>
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(V va,
      V vb)
Compare two objects for equality. 
 | 
int | 
hashCode(V v)
Return a hash for the specified object. 
 | 
static int | 
mod(int n,
   int m)
Calculate a modulo of two integer numbers. 
 | 
static long | 
mod(long n,
   long m)
Calculate a modulo of two long numbers. 
 | 
int hashCode(V v)
v - the object to hashboolean equals(V va, V vb)
va - the first object to comparevb - the second object to comparestatic int mod(int n,
               int m)
n % m).
 For a negative dividend the result is still positive and equals to
 (n % m + m).n - the dividendm - the divisor (must be positive)static long mod(long n,
                long m)
n % m).
 For a negative dividend the result is still positive and equals to
 (n % m + m).n - the dividendm - the divisor (must be positive)