public class OFMetadata extends Object implements OFValueType<OFMetadata>
| Modifier and Type | Field and Description |
|---|---|
static OFMetadata |
FULL_MASK |
static OFMetadata |
NO_MASK |
static OFMetadata |
NONE |
| Constructor and Description |
|---|
OFMetadata(U64 ofRaw) |
| Modifier and Type | Method and Description |
|---|---|
OFMetadata |
applyMask(OFMetadata mask) |
int |
compareTo(OFMetadata o) |
boolean |
equals(Object arg0) |
int |
getLength() |
U64 |
getValue() |
int |
hashCode() |
static OFMetadata |
of(U64 u64) |
static OFMetadata |
ofRaw(long 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 OFMetadata |
read8Bytes(io.netty.buffer.ByteBuf cb) |
String |
toString() |
void |
write8Bytes(io.netty.buffer.ByteBuf cb) |
public static final OFMetadata NONE
public static final OFMetadata NO_MASK
public static final OFMetadata FULL_MASK
public OFMetadata(U64 ofRaw)
public static OFMetadata of(U64 u64)
public static OFMetadata ofRaw(long raw)
public U64 getValue()
public static OFMetadata read8Bytes(io.netty.buffer.ByteBuf cb)
public void write8Bytes(io.netty.buffer.ByteBuf cb)
public int getLength()
getLength in interface OFValueType<OFMetadata>public OFMetadata applyMask(OFMetadata mask)
applyMask in interface OFValueType<OFMetadata>public int compareTo(OFMetadata o)
compareTo in interface Comparable<OFMetadata>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 © 2020. All rights reserved.