public interface HashFunction<T>
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
hash(T data)
Maps some given data to an integer location in the implemented hash
space.
|
java.math.BigInteger |
maxValue()
Determines the maximum hash value that this hash function can produce.
|
java.math.BigInteger |
randomHash()
Returns a random location in the hash space.
|
java.math.BigInteger hash(T data) throws HashException
data - Data to hash against.HashExceptionjava.math.BigInteger maxValue()
java.math.BigInteger randomHash()
throws HashException
HashException