public static enum RIPng.CmdType extends java.lang.Enum<RIPng.CmdType>
Enum Constant and Description |
---|
RIPngREQUEST |
RIPngRESPONSE |
Modifier and Type | Field and Description |
---|---|
protected int |
value |
Modifier and Type | Method and Description |
---|---|
static RIPng.CmdType |
getType(int value) |
int |
getValue() |
static RIPng.CmdType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RIPng.CmdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RIPng.CmdType RIPngREQUEST
public static final RIPng.CmdType RIPngRESPONSE
public static RIPng.CmdType[] values()
for (RIPng.CmdType c : RIPng.CmdType.values()) System.out.println(c);
public static RIPng.CmdType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static RIPng.CmdType getType(int value)