public class GenTableId extends Object implements OFValueType<GenTableId>, Comparable<GenTableId>
| Modifier and Type | Field and Description |
|---|---|
static GenTableId |
ALL |
static GenTableId |
NONE |
static GenTableId |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
GenTableId |
applyMask(GenTableId mask) |
int |
compareTo(GenTableId other) |
boolean |
equals(Object obj) |
int |
getLength() |
int |
getValue() |
int |
hashCode() |
static GenTableId |
of(int id) |
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 GenTableId |
read2Bytes(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write2Bytes(io.netty.buffer.ByteBuf c) |
public static final GenTableId NONE
public static final GenTableId ALL
public static final GenTableId ZERO
public static GenTableId of(int id)
public int getValue()
public int getLength()
getLength in interface OFValueType<GenTableId>public void write2Bytes(io.netty.buffer.ByteBuf c)
public static GenTableId read2Bytes(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseErrorpublic GenTableId applyMask(GenTableId mask)
applyMask in interface OFValueType<GenTableId>public int compareTo(GenTableId other)
compareTo in interface Comparable<GenTableId>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.