Package edu.wpi.first.wpilibj
Enum DMASample.DMAReadStatus
- java.lang.Object
-
- java.lang.Enum<DMASample.DMAReadStatus>
-
- edu.wpi.first.wpilibj.DMASample.DMAReadStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<DMASample.DMAReadStatus>
- Enclosing class:
- DMASample
public static enum DMASample.DMAReadStatus extends Enum<DMASample.DMAReadStatus>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static DMASample.DMAReadStatus
getValue(int value)
Constructs a DMAReadStatus from a raw value.static DMASample.DMAReadStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static DMASample.DMAReadStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kOk
public static final DMASample.DMAReadStatus kOk
-
kTimeout
public static final DMASample.DMAReadStatus kTimeout
-
kError
public static final DMASample.DMAReadStatus kError
-
-
Method Detail
-
values
public static DMASample.DMAReadStatus[] 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 (DMASample.DMAReadStatus c : DMASample.DMAReadStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DMASample.DMAReadStatus valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-
getValue
public static DMASample.DMAReadStatus getValue(int value)
Constructs a DMAReadStatus from a raw value.- Parameters:
value
- raw value- Returns:
- enum value
-
-