public class U128 extends Object implements OFValueType<U128>, HashValue<U128>
HashValue.Builder<H>
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) |
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 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)
putTo
in interface PrimitiveSinkable
public U128 inverse()
public U128 or(U128 other)
HashValue
public U128 and(U128 other)
HashValue
public U128 xor(U128 other)
HashValue
public U128 add(U128 other)
HashValue
public U128 subtract(U128 other)
HashValue
public int prefixBits(int numBits)
HashValue
prefixBits
in interface HashValue<U128>
numBits
- number of higest-order bits to return [0-32].Copyright © 2015. All rights reserved.