public static enum Ethernet.Control extends Enum<Ethernet.Control> implements ProtocolEnum
Enum Constant and Description |
---|
NO_CONTROL
No control type.
|
UNNUMBERED
Unnumbered control type.
|
Modifier and Type | Method and Description |
---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static Ethernet.Control |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ethernet.Control[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ethernet.Control NO_CONTROL
public static final Ethernet.Control UNNUMBERED
public static Ethernet.Control[] values()
for (Ethernet.Control c : Ethernet.Control.values()) System.out.println(c);
public static Ethernet.Control 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.