|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Client.State>
com.neeve.client.Client.State
public static enum Client.State
Enumerates a client's states.
Enum Constant Summary | |
---|---|
CLOSED
Indicates that a client has been closed. |
|
FAILED
Indicates that a client has failed. |
|
INIT
Indicates the initialized state. |
|
OPEN
Indicates that a client is open and operational. |
Method Summary | |
---|---|
static Client.State |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Client.State[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Client.State INIT
public static final Client.State OPEN
public static final Client.State FAILED
public static final Client.State CLOSED
Method Detail |
---|
public static Client.State[] values()
for (Client.State c : Client.State.values()) System.out.println(c);
public static Client.State valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |