public static enum AsciiCommander.ConnectionState extends java.lang.Enum<AsciiCommander.ConnectionState>
Enum Constant and Description |
---|
CONNECTED
The AsciiCommander is connected to a device
|
CONNECTING
The AsciiCommander is trying to connect to device
|
DISCONNECTED
The AsciiCommander is not connected to a device
|
UNDEFINED
The connection state is undefined
|
Modifier and Type | Method and Description |
---|---|
static AsciiCommander.ConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AsciiCommander.ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsciiCommander.ConnectionState UNDEFINED
public static final AsciiCommander.ConnectionState DISCONNECTED
public static final AsciiCommander.ConnectionState CONNECTING
public static final AsciiCommander.ConnectionState CONNECTED
public static AsciiCommander.ConnectionState[] values()
for (AsciiCommander.ConnectionState c : AsciiCommander.ConnectionState.values()) System.out.println(c);
public static AsciiCommander.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 null