H
- - this type, for return type safety.@Immutable public interface HashValue<H extends HashValue<H>>
Modifier and Type | Method and Description |
---|---|
H |
and(H other)
and this value with another value value of the same type
|
H |
combineWithValue(H value,
int keyBits)
calculate a combined hash value of this hash value (the Key) and the hash value
specified as a parameter (the Value).
|
H |
inverse() |
H |
or(H other)
or this value with another value value of the same type
|
int |
prefixBits(int numBits)
return the "numBits" highest-order bits of the hash.
|
H |
xor(H other)
xor this value with another value value of the same type
|
int prefixBits(int numBits)
numBits
- number of higest-order bits to return [0-32].H inverse()
H combineWithValue(H value, int keyBits)
The value is constructed as follows:
MSB LSB +---------+--------------+ | key | key ^ value | +---------+--------------+ |-keyBits-|
value
- - hash value to be compared with this value (the key)keyBits
- number of prefix bits that are just taken from keyCopyright © 2014. All rights reserved.