- java.lang.Object
-
- java.lang.Enum<BleDevice.State>
-
- com.gluonhq.attach.ble.BleDevice.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BleDevice.State>
- Enclosing class:
- BleDevice
public static enum BleDevice.State extends java.lang.Enum<BleDevice.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STATE_CONNECTED
STATE_CONNECTING
STATE_DISCONNECTED
STATE_DISCONNECTING
STATE_UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BleDevice.State
fromName(java.lang.String stateName)
static BleDevice.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BleDevice.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATE_UNKNOWN
public static final BleDevice.State STATE_UNKNOWN
-
STATE_CONNECTED
public static final BleDevice.State STATE_CONNECTED
-
STATE_CONNECTING
public static final BleDevice.State STATE_CONNECTING
-
STATE_DISCONNECTED
public static final BleDevice.State STATE_DISCONNECTED
-
STATE_DISCONNECTING
public static final BleDevice.State STATE_DISCONNECTING
-
-
Method Detail
-
values
public static BleDevice.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BleDevice.State c : BleDevice.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BleDevice.State valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromName
public static BleDevice.State fromName(java.lang.String stateName)
-
-