public enum IpEcn extends Enum<IpEcn> implements OFValueType<IpEcn>
Enum Constant and Description |
---|
ECN_00 |
ECN_01 |
ECN_10 |
ECN_11 |
ECN_NO_MASK |
Modifier and Type | Field and Description |
---|---|
static IpEcn |
FULL_MASK |
static IpEcn |
NO_MASK |
static IpEcn |
NONE |
Modifier and Type | Method and Description |
---|---|
IpEcn |
applyMask(IpEcn mask) |
byte |
getEcnValue() |
int |
getLength() |
static IpEcn |
of(byte ecn) |
void |
putTo(com.google.common.hash.PrimitiveSink sink) |
static IpEcn |
readByte(io.netty.buffer.ByteBuf c) |
String |
toString() |
static IpEcn |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpEcn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeByte(io.netty.buffer.ByteBuf c) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
compareTo
public static final IpEcn ECN_00
public static final IpEcn ECN_01
public static final IpEcn ECN_10
public static final IpEcn ECN_11
public static final IpEcn ECN_NO_MASK
public static final IpEcn NONE
public static final IpEcn NO_MASK
public static final IpEcn FULL_MASK
public static IpEcn[] values()
for (IpEcn c : IpEcn.values()) System.out.println(c);
public static IpEcn valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static IpEcn of(byte ecn)
public int getLength()
getLength
in interface OFValueType<IpEcn>
public void writeByte(io.netty.buffer.ByteBuf c)
public static IpEcn readByte(io.netty.buffer.ByteBuf c) throws OFParseError
OFParseError
public IpEcn applyMask(IpEcn mask)
applyMask
in interface OFValueType<IpEcn>
public byte getEcnValue()
public void putTo(com.google.common.hash.PrimitiveSink sink)
putTo
in interface PrimitiveSinkable
Copyright © 2015. All rights reserved.