public final class U128 extends Object implements OFValueType<U128>, HashValue<U128>
HashValue.Builder<H>| Modifier and Type | Field and Description |
|---|---|
static U128 |
FULL_MASK |
static U128 |
NO_MASK |
static U128 |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
U128 |
add(U128 other)
perform an arithmetic addition of this value and other.
|
U128 |
and(U128 other)
and this value with another value value of the same type
|
U128 |
applyMask(U128 mask) |
HashValue.Builder<U128> |
builder()
create and return a builder
|
int |
compareTo(U128 o) |
boolean |
equals(Object obj) |
int |
getLength() |
long |
getLsb() |
long |
getMsb() |
int |
hashCode() |
U128 |
inverse() |
static U128 |
of(long raw1,
long raw2) |
U128 |
or(U128 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.
|
void |
putTo(com.google.common.hash.PrimitiveSink sink)
Dump the state of this object into a
PrimitiveSink (e.g., a Hasher) for the purpose
of computing a strong hash. |
static U128 |
read16Bytes(io.netty.buffer.ByteBuf cb) |
U128 |
subtract(U128 other)
arithmetically substract the given 'other' value from this value.
|
String |
toString() |
void |
write16Bytes(io.netty.buffer.ByteBuf cb) |
U128 |
xor(U128 other)
xor this value with another value value of the same type
|
public static final U128 ZERO
public static final U128 NO_MASK
public static final U128 FULL_MASK
public static U128 of(long raw1, long raw2)
public int getLength()
getLength in interface OFValueType<U128>public long getMsb()
public long getLsb()
public U128 applyMask(U128 mask)
applyMask in interface OFValueType<U128>public void write16Bytes(io.netty.buffer.ByteBuf cb)
public static U128 read16Bytes(io.netty.buffer.ByteBuf cb)
public int compareTo(@Nonnull U128 o)
compareTo in interface Comparable<U128>public void putTo(com.google.common.hash.PrimitiveSink sink)
PrimitiveSinkablePrimitiveSink (e.g., a Hasher) for the purpose
of computing a strong hash.
Equality contract:
Equal objects must dump the equal data into the sink, non-equal objects must dump different
data into the sink. Please see the interface documentation of PrimitiveSink for more
details and caveats/traps.putTo in interface PrimitiveSinkablesink - the sink to dump the object state into.public U128 inverse()
public U128 or(U128 other)
HashValuepublic U128 and(U128 other)
HashValuepublic U128 xor(U128 other)
HashValuepublic U128 add(U128 other)
HashValuepublic U128 subtract(U128 other)
HashValuepublic int prefixBits(int numBits)
HashValueprefixBits in interface HashValue<U128>numBits - number of higest-order bits to return [0-32].Copyright © 2019. All rights reserved.