com.stollmann.terminalIO
Enum TIO.OperationMode

java.lang.Object
  extended by java.lang.Enum<TIO.OperationMode>
      extended by com.stollmann.terminalIO.TIO.OperationMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TIO.OperationMode>
Enclosing class:
TIO

public static enum TIO.OperationMode
extends java.lang.Enum<TIO.OperationMode>

TerminalIO peripheral operation mode constants.


Enum Constant Summary
BondableFunctional
          The peripheral is in bondable and functional mode.
BondingOnly
          The peripheral is (temporarily) in bonding operation mode.
Functional
          The peripheral is in functional operation mode.
 
Method Summary
 boolean equals(TIO.OperationMode operationMode)
          Compares this value an another value for equality.
static TIO.OperationMode fromValue(int value)
          Creates a TIO.OperationMode value from an integer value.
 int getValue()
          Gets this value's Integer value.
static TIO.OperationMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TIO.OperationMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BondableFunctional

public static final TIO.OperationMode BondableFunctional
The peripheral is in bondable and functional mode. A central may connect and perform the specified bonding procedure or transmit and receive UART data (or GPIO states, if supported).


BondingOnly

public static final TIO.OperationMode BondingOnly
The peripheral is (temporarily) in bonding operation mode. A central shall perform the specified bonding procedure when connecting.


Functional

public static final TIO.OperationMode Functional
The peripheral is in functional operation mode. A central may connect in order to transmit and receive UART data (or GPIO states, if supported).

Method Detail

equals

public boolean equals(TIO.OperationMode operationMode)
Compares this value an another value for equality.

Parameters:
operationMode - TIO.OperationMode value to compare this value to.
Returns:
true if both value are equal, false otherwise.

fromValue

public static TIO.OperationMode fromValue(int value)
Creates a TIO.OperationMode value from an integer value.

Parameters:
value - The Integer to create a TIO.OperationMode value from.
Returns:
The requested TIO.OperationMode value.

getValue

public int getValue()
Gets this value's Integer value.

Returns:
An Integer containing this value's Integer value.

valueOf

public static TIO.OperationMode 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 name
java.lang.NullPointerException - if the argument is null

values

public static TIO.OperationMode[] 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 (TIO.OperationMode c : TIO.OperationMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared