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