public enum NetworkState extends java.lang.Enum<NetworkState> implements EnumType
Enum Constant and Description |
---|
CONNECTED |
DISCONNECTED |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static NetworkState |
find(int id) |
int |
getId() |
java.lang.String |
getType() |
static NetworkState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkState CONNECTED
public static final NetworkState DISCONNECTED
public static final NetworkState UNKNOWN
public static NetworkState[] values()
for (NetworkState c : NetworkState.values()) System.out.println(c);
public static NetworkState 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 getType()
public static NetworkState find(int id)