public enum IpTosEcn extends Enum<IpTosEcn> implements ProtocolEnum
Enum Constant and Description |
---|
CE
Congestion Experienced.
|
ECT_0
ECT_Capable Transport 0.
|
ECT_1
ECT-Capable Transport 1.
|
NOT_ECT
Not ECT-Capable Transport.
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static IpTosEcn |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpTosEcn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IpTosEcn NOT_ECT
public static final IpTosEcn ECT_1
public static final IpTosEcn ECT_0
public static final IpTosEcn CE
public static IpTosEcn[] values()
for (IpTosEcn c : IpTosEcn.values()) System.out.println(c);
public static IpTosEcn 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 int code()
ProtocolEnum
code
in interface ProtocolEnum
Copyright © 2015. All Rights Reserved.