public static enum SyncClient.ConnectionState extends java.lang.Enum<SyncClient.ConnectionState>
Enum Constant and Description |
---|
CONNECTED |
CONNECTING |
DENIED |
DISCONNECTED |
FATAL_ERROR |
Modifier and Type | Method and Description |
---|---|
static SyncClient.ConnectionState |
fromInt(int value) |
int |
getValue() |
static SyncClient.ConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SyncClient.ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SyncClient.ConnectionState CONNECTING
public static final SyncClient.ConnectionState CONNECTED
public static final SyncClient.ConnectionState DISCONNECTED
public static final SyncClient.ConnectionState DENIED
public static final SyncClient.ConnectionState FATAL_ERROR
public static SyncClient.ConnectionState[] values()
for (SyncClient.ConnectionState c : SyncClient.ConnectionState.values()) System.out.println(c);
public static SyncClient.ConnectionState 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 getValue()
public static SyncClient.ConnectionState fromInt(int value)