public class U64 extends Object implements Writeable, OFValueType<U64>, HashValue<U64>
Modifier and Type | Field and Description |
---|---|
static org.projectfloodlight.openflow.types.U64.Reader |
READER |
static U64 |
ZERO |
Modifier | Constructor and Description |
---|---|
protected |
U64(long raw) |
Modifier and Type | Method and Description |
---|---|
U64 |
and(U64 other)
and this value with another value value of the same type
|
U64 |
applyMask(U64 mask) |
U64 |
combineWithValue(U64 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(U64 o) |
boolean |
equals(Object obj) |
static BigInteger |
f(long value) |
BigInteger |
getBigInteger() |
int |
getLength() |
long |
getValue() |
int |
hashCode() |
U64 |
inverse() |
static U64 |
of(long raw) |
static U64 |
ofRaw(long raw) |
U64 |
or(U64 other)
or this value with another value value of the same type
|
static U64 |
parseHex(String hex) |
int |
prefixBits(int numBits)
return the "numBits" highest-order bits of the hash.
|
void |
putTo(com.google.common.hash.PrimitiveSink sink) |
static long |
t(BigInteger l) |
String |
toString() |
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer bb) |
U64 |
xor(U64 other)
xor this value with another value value of the same type
|
public static final U64 ZERO
public static final org.projectfloodlight.openflow.types.U64.Reader READER
public static U64 of(long raw)
public static U64 ofRaw(long raw)
public long getValue()
public BigInteger getBigInteger()
public static BigInteger f(long value)
public static long t(BigInteger l)
public int getLength()
getLength
in interface OFValueType<U64>
public U64 applyMask(U64 mask)
applyMask
in interface OFValueType<U64>
public void writeTo(org.jboss.netty.buffer.ChannelBuffer bb)
public int compareTo(U64 o)
compareTo
in interface Comparable<U64>
public void putTo(com.google.common.hash.PrimitiveSink sink)
putTo
in interface PrimitiveSinkable
public U64 inverse()
public U64 or(U64 other)
HashValue
public U64 and(U64 other)
HashValue
public U64 xor(U64 other)
HashValue
public int prefixBits(int numBits)
prefixBits
in interface HashValue<U64>
numBits
- number of higest-order bits to return [0-32].public U64 combineWithValue(U64 value, int keyBits)
HashValue
The value is constructed as follows:
MSB LSB +---------+--------------+ | key | key ^ value | +---------+--------------+ |-keyBits-|
combineWithValue
in interface HashValue<U64>
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.