OBJECT - Type of object being hashedpublic abstract class HashComposition<OBJECT> extends Object implements HashFunction<OBJECT>
HashCompositions are HashFunctions that compose the hash
codes generated by multiple hash functions applied to an object into a single
hash code for that object.| Modifier and Type | Field and Description |
|---|---|
protected List<HashFunction<OBJECT>> |
hashFunctions |
| Constructor and Description |
|---|
HashComposition(HashFunction<OBJECT> first,
HashFunction<OBJECT>... remainder)
Construct with the given functions.
|
HashComposition(HashFunctionFactory<OBJECT> factory,
int nFuncs)
Construct with the factory which is used to produce the required number
of functions.
|
HashComposition(List<HashFunction<OBJECT>> functions)
Construct with the given functions.
|
protected List<HashFunction<OBJECT>> hashFunctions
public HashComposition(List<HashFunction<OBJECT>> functions)
functions - the underlying hash functions.@SafeVarargs public HashComposition(HashFunction<OBJECT> first, HashFunction<OBJECT>... remainder)
first - the first functionremainder - the remainder of the functionspublic HashComposition(HashFunctionFactory<OBJECT> factory, int nFuncs)
factory - the factory to use to produce the underlying hash functions.nFuncs - the number of functions to create for the composition