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