H
- - this type, for return type safety.@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
- H subtract(H other)
other
- H inverse()
HashValue.Builder<H> builder()
Copyright © 2015. All rights reserved.