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) |
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
OFParseError
public 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)
putTo
in interface PrimitiveSinkable
Copyright © 2015. All rights reserved.