public static enum RIP.CmdType extends Enum<RIP.CmdType>
| Enum Constant and Description |
|---|
RIPREQUEST |
RIPRESPONSE |
| Modifier and Type | Field and Description |
|---|---|
protected int |
value |
| Modifier and Type | Method and Description |
|---|---|
static RIP.CmdType |
getType(int value) |
int |
getValue() |
static RIP.CmdType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RIP.CmdType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RIP.CmdType RIPREQUEST
public static final RIP.CmdType RIPRESPONSE
public static RIP.CmdType[] values()
for (RIP.CmdType c : RIP.CmdType.values()) System.out.println(c);
public static RIP.CmdType 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 getValue()
public static RIP.CmdType getType(int value)