@Immutable public interface HashValue<H extends HashValue<H>>
Modifier and Type | Interface and Description |
---|---|
static interface |
HashValue.Builder<H>
a mutator for HashValues.
|
Modifier and Type | Method and Description |
---|---|
H |
add(H other)
perform an arithmetic addition of this value and other.
|
H |
and(H other)
and this value with another value value of the same type
|
HashValue.Builder<H> |
builder()
create and return a builder
|
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 |
subtract(H other)
arithmetically substract the given 'other' value from this value.
|
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 add(H other)
other
- the other value to add to thisH subtract(H other)
other
- the other value to subtract from thisH inverse()
H or(H other)
other
- the other value to bitwise or with thisH and(H other)
other
- the other value to bitwise and with thisH xor(H other)
other
- the other value to bitwise xor with thisHashValue.Builder<H> builder()
Copyright © 2017. All rights reserved.