Package com.ctre.phoenix
Enum GadgeteerUartClient.GadgeteerConnection
java.lang.Object
java.lang.Enum<GadgeteerUartClient.GadgeteerConnection>
com.ctre.phoenix.GadgeteerUartClient.GadgeteerConnection
- All Implemented Interfaces:
Serializable
,Comparable<GadgeteerUartClient.GadgeteerConnection>
,java.lang.constant.Constable
- Enclosing interface:
- GadgeteerUartClient
public static enum GadgeteerUartClient.GadgeteerConnection extends Enum<GadgeteerUartClient.GadgeteerConnection>
Method of connection to gadgeteer
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Connected
Device is connectedConnecting
Device in process of connectingNotConnected
Device not connectedUnknown
Device unknown -
Method Summary
Modifier and Type Method Description static GadgeteerUartClient.GadgeteerConnection
valueOf(int value)
Get GadgeteerConnection of specified valuestatic GadgeteerUartClient.GadgeteerConnection
valueOf(String name)
Returns the enum constant of this type with the specified name.static GadgeteerUartClient.GadgeteerConnection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NotConnected
Device not connected -
Connecting
Device in process of connecting -
Connected
Device is connected -
Unknown
Device unknown
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Get GadgeteerConnection of specified value- Parameters:
value
- Value of GadgeteerConnection- Returns:
- GadgeteerConnection of specified value
-