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