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