public class U64 extends Object implements Writeable, OFValueType<U64>, HashValue<U64>
HashValue.Builder<H>
Modifier and Type | Field and Description |
---|---|
static U64 |
FULL_MASK |
static U64 |
NO_MASK |
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 |
add(U64 other)
perform an arithmetic addition of this value and other.
|
U64 |
and(U64 other)
and this value with another value value of the same type
|
U64 |
applyMask(U64 mask) |
HashValue.Builder<U64> |
builder()
create and return a builder
|
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) |
U64 |
subtract(U64 other)
arithmetically substract the given 'other' value from this value.
|
static long |
t(BigInteger l) |
String |
toString() |
void |
writeTo(io.netty.buffer.ByteBuf bb) |
U64 |
xor(U64 other)
xor this value with another value value of the same type
|
public static final U64 ZERO
public static final U64 NO_MASK
public static final U64 FULL_MASK
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(io.netty.buffer.ByteBuf 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 U64 add(U64 other)
HashValue
public U64 subtract(U64 other)
HashValue
public int prefixBits(int numBits)
prefixBits
in interface HashValue<U64>
numBits
- number of higest-order bits to return [0-32].Copyright © 2015. All rights reserved.