public enum EthernetConnectionMode extends java.lang.Enum<EthernetConnectionMode>
EthernetManager
Enum Constant | Description |
---|---|
DHCP |
Indicates that the connection mode is DHCP.
|
STATIC |
Indicates that the connection mode is static.
|
UNKNOWN |
Indicates that the connection mode is unknown.
|
Modifier and Type | Method | Description |
---|---|---|
static EthernetConnectionMode |
getById(int id) |
Returns the
EthernetConnectionMode associated to the provided
mode ID. |
java.lang.String |
getDescription() |
Returns the Ethernet connection mode description.
|
int |
getId() |
Returns the Ethernet connection mode ID.
|
static EthernetConnectionMode |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static EthernetConnectionMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EthernetConnectionMode DHCP
public static final EthernetConnectionMode STATIC
public static final EthernetConnectionMode UNKNOWN
public static EthernetConnectionMode[] values()
for (EthernetConnectionMode c : EthernetConnectionMode.values()) System.out.println(c);
public static EthernetConnectionMode 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 getId()
public java.lang.String getDescription()
public static EthernetConnectionMode getById(int id)
EthernetConnectionMode
associated to the provided
mode ID.id
- The ID of the EthernetConnectionMode
to retrieve.EthernetConnectionMode
associated to the provided
mode ID.