Enum BluetoothResponse
- java.lang.Object
-
- java.lang.Enum<BluetoothResponse>
-
- ptolemy.domains.wireless.lib.bluetooth.BluetoothResponse
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BluetoothResponse>
public enum BluetoothResponse extends java.lang.Enum<BluetoothResponse>
This enum defines all allowable Bluetooth Responses.- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Phillip Azar
- See Also:
BluetoothResponseToken
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMAND_DISCONNECT
COMMAND_REQUESTCONNECT
COMMAND_REQUESTPAIR
COMMAND_SCAN
RESPONSE_ACCEPTCONNECT
RESPONSE_ACCEPTPAIR
RESPONSE_DENY
RESPONSE_FINDME
RESPONSE_OK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BluetoothResponse
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BluetoothResponse[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESPONSE_OK
public static final BluetoothResponse RESPONSE_OK
-
RESPONSE_DENY
public static final BluetoothResponse RESPONSE_DENY
-
RESPONSE_ACCEPTCONNECT
public static final BluetoothResponse RESPONSE_ACCEPTCONNECT
-
RESPONSE_ACCEPTPAIR
public static final BluetoothResponse RESPONSE_ACCEPTPAIR
-
RESPONSE_FINDME
public static final BluetoothResponse RESPONSE_FINDME
-
COMMAND_REQUESTPAIR
public static final BluetoothResponse COMMAND_REQUESTPAIR
-
COMMAND_REQUESTCONNECT
public static final BluetoothResponse COMMAND_REQUESTCONNECT
-
COMMAND_DISCONNECT
public static final BluetoothResponse COMMAND_DISCONNECT
-
COMMAND_SCAN
public static final BluetoothResponse COMMAND_SCAN
-
-
Method Detail
-
values
public static BluetoothResponse[] 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 (BluetoothResponse c : BluetoothResponse.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BluetoothResponse 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
-
-