public class U16 extends Object implements Writeable, OFValueType<U16>
| Modifier and Type | Field and Description |
|---|---|
static U16 |
FULL_MASK |
static U16 |
NO_MASK |
static org.projectfloodlight.openflow.types.U16.Reader |
READER |
static U16 |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
U16 |
applyMask(U16 mask) |
int |
compareTo(U16 o) |
boolean |
equals(Object obj) |
static int |
f(short i) |
int |
getLength() |
short |
getRaw() |
int |
getValue() |
int |
hashCode() |
static U16 |
of(int value) |
static U16 |
ofRaw(short raw) |
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 short |
t(int l) |
String |
toString() |
void |
writeTo(io.netty.buffer.ByteBuf bb) |
public static final U16 ZERO
public static final U16 NO_MASK
public static final U16 FULL_MASK
public static final org.projectfloodlight.openflow.types.U16.Reader READER
public static int f(short i)
public static short t(int l)
public static final U16 of(int value)
public static final U16 ofRaw(short raw)
public int getValue()
public short getRaw()
public void writeTo(io.netty.buffer.ByteBuf bb)
public int getLength()
getLength in interface OFValueType<U16>public U16 applyMask(U16 mask)
applyMask in interface OFValueType<U16>public int compareTo(U16 o)
compareTo in interface Comparable<U16>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.Copyright © 2019. All rights reserved.