public class U128 extends Object implements OFValueType<U128>, HashValue<U128>
Modifier and Type | Method and Description |
---|---|
U128 |
and(U128 other)
and this value with another value value of the same type
|
U128 |
applyMask(U128 mask) |
U128 |
combineWithValue(U128 value,
int keyBits)
calculate a combined hash value of this hash value (the Key) and the hash value
specified as a parameter (the Value).
|
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(org.jboss.netty.buffer.ChannelBuffer cb) |
String |
toString() |
void |
write16Bytes(org.jboss.netty.buffer.ChannelBuffer 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(org.jboss.netty.buffer.ChannelBuffer cb)
public static U128 read16Bytes(org.jboss.netty.buffer.ChannelBuffer 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 int prefixBits(int numBits)
HashValue
prefixBits
in interface HashValue<U128>
numBits
- number of higest-order bits to return [0-32].public U128 combineWithValue(U128 value, int keyBits)
HashValue
The value is constructed as follows:
MSB LSB +---------+--------------+ | key | key ^ value | +---------+--------------+ |-keyBits-|
combineWithValue
in interface HashValue<U128>
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.