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