public static enum Device.State extends java.lang.Enum<Device.State>
Device.getState()
Enum Constant and Description |
---|
BUSY
The device is connected to the network and has an active connection.
|
OFFLINE
The device is not connected and cannot receive incoming connections or make outgoing connections.
|
READY
The device can receive incoming connections and attempt outgoing connections if capabilities allow.
|
Modifier and Type | Method and Description |
---|---|
static Device.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Device.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Device.State OFFLINE
public static final Device.State READY
public static final Device.State BUSY
public static Device.State[] values()
for (Device.State c : Device.State.values()) System.out.println(c);
public static Device.State 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