public class PacketType extends Object implements OFValueType<PacketType>
| Modifier and Type | Field and Description |
|---|---|
static PacketType |
ETHERNET |
static PacketType |
EXPERIMENTER |
static PacketType |
FULL_MASK |
static PacketType |
IPV4 |
static PacketType |
IPV6 |
static PacketType |
NO_MASK |
static PacketType |
NO_PACKET |
| Modifier and Type | Method and Description |
|---|---|
PacketType |
applyMask(PacketType mask) |
int |
compareTo(PacketType o) |
boolean |
equals(Object obj) |
int |
getLength() |
int |
getNamespace() |
int |
getNsType() |
int |
hashCode() |
static PacketType |
of(int namespace,
int nsType) |
static PacketType |
of(OFHeaderTypeNamespace namespace,
int nsType) |
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 PacketType |
read4Bytes(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write4Bytes(io.netty.buffer.ByteBuf c) |
public static final PacketType ETHERNET
public static final PacketType NO_PACKET
public static final PacketType EXPERIMENTER
public static final PacketType IPV4
public static final PacketType IPV6
public static final PacketType NO_MASK
public static final PacketType FULL_MASK
public static PacketType of(int namespace, int nsType)
public static PacketType of(OFHeaderTypeNamespace namespace, int nsType)
public PacketType applyMask(PacketType mask)
applyMask in interface OFValueType<PacketType>public int compareTo(PacketType o)
compareTo in interface Comparable<PacketType>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.public int getLength()
getLength in interface OFValueType<PacketType>public void write4Bytes(io.netty.buffer.ByteBuf c)
public static PacketType read4Bytes(io.netty.buffer.ByteBuf c)
public int getNamespace()
public int getNsType()
Copyright © 2019. All rights reserved.