public class VxlanNI extends Object implements OFValueType<VxlanNI>
| Modifier and Type | Field and Description |
|---|---|
static VxlanNI |
FULL_MASK |
static VxlanNI |
NO_MASK |
static VxlanNI |
ZERO |
| Modifier and Type | Method and Description |
|---|---|
VxlanNI |
applyMask(VxlanNI mask) |
int |
compareTo(VxlanNI o) |
boolean |
equals(Object obj) |
int |
getLength() |
int |
getVni() |
int |
hashCode() |
static VxlanNI |
ofVni(int vni) |
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 VxlanNI |
read4Bytes(io.netty.buffer.ByteBuf c) |
String |
toString() |
void |
write4Bytes(io.netty.buffer.ByteBuf c) |
public static final VxlanNI ZERO
public static final VxlanNI NO_MASK
public static final VxlanNI FULL_MASK
public static VxlanNI ofVni(int vni)
public int getVni()
public int getLength()
getLength in interface OFValueType<VxlanNI>public void write4Bytes(io.netty.buffer.ByteBuf c)
public static VxlanNI read4Bytes(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseErrorpublic VxlanNI applyMask(VxlanNI mask)
applyMask in interface OFValueType<VxlanNI>public int compareTo(VxlanNI o)
compareTo in interface Comparable<VxlanNI>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.