public class BluetoothStatusToken<T> extends BluetoothToken
This class must be instantiated with two parameters: a BluetoothStatus enum element, and a data of type T.
BluetoothStatus
,
BluetoothDevice
Constructor and Description |
---|
BluetoothStatusToken(BluetoothStatus status,
T data)
Constructs a status token with a BluetoothStatus enum element and arbitrary data point.
|
Modifier and Type | Method and Description |
---|---|
T |
getData()
Returns the data held by this status token.
|
BluetoothStatus |
getStatusValue()
Returns the status value held by this token.
|
BooleanToken |
isEqualTo(Token rightArgument)
Test for equality of the values of this Token and the argument
Token.
|
java.lang.String |
toString()
Return the value of this token as a string that can be parsed
by the expression language to recover a token with the same value.
|
add, addReverse, divide, divideReverse, isCloseTo, modulo, moduloReverse, multiply, multiplyReverse, pow, subtract, subtractReverse
getType, isCloseTo, isNil, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, zero, zeroReturnType
public BluetoothStatusToken(BluetoothStatus status, T data)
status
- The statusdata
- The datapublic BluetoothStatus getStatusValue()
public T getData()
public BooleanToken isEqualTo(Token rightArgument) throws IllegalActionException
Token
isEqualTo
in class Token
rightArgument
- The token with which to test equality.IllegalActionException
- If the argument token is not
of a type that can be compared with this token.public java.lang.String toString()
Token
Token.NIL
then
return "nil"