public class VlanVid extends Object implements OFValueType<VlanVid>
| Modifier and Type | Field and Description |
|---|---|
static VlanVid |
FULL_MASK |
static VlanVid |
NO_MASK
for use with masking operations
|
static VlanVid |
ZERO
this value means 'not set' in OF1.0 (e.g., in a match).
|
| Modifier and Type | Method and Description |
|---|---|
VlanVid |
applyMask(VlanVid mask) |
int |
compareTo(VlanVid o) |
boolean |
equals(Object obj) |
byte[] |
getBytes() |
int |
getLength() |
short |
getVlan() |
int |
hashCode() |
static VlanVid |
ofVlan(int vid) |
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 VlanVid |
read2Bytes(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write2Bytes(io.netty.buffer.ByteBuf c) |
void |
write2BytesOF10(io.netty.buffer.ByteBuf c) |
public static final VlanVid ZERO
public static final VlanVid NO_MASK
public static final VlanVid FULL_MASK
public static VlanVid ofVlan(int vid)
public short getVlan()
public int getLength()
getLength in interface OFValueType<VlanVid>public byte[] getBytes()
public void write2Bytes(io.netty.buffer.ByteBuf c)
public void write2BytesOF10(io.netty.buffer.ByteBuf c)
public static VlanVid read2Bytes(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseErrorpublic VlanVid applyMask(VlanVid mask)
applyMask in interface OFValueType<VlanVid>public int compareTo(VlanVid o)
compareTo in interface Comparable<VlanVid>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.