Enum Class POVDirection
- All Implemented Interfaces:
Serializable, Comparable<POVDirection>, Constable
A controller POV direction.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAngle()Gets the angle of a POVDirection.static POVDirectionof(byte value) Converts a byte value into a POVDirection enum value.static POVDirectionReturns the enum constant of this class with the specified name.static POVDirection[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CENTER
POV center. -
UP
POV up. -
UP_RIGHT
POV up right. -
RIGHT
POV right. -
DOWN_RIGHT
POV down right. -
DOWN
POV down. -
DOWN_LEFT
POV down left. -
LEFT
POV left. -
UP_LEFT
POV up left.
-
-
Field Details
-
value
The corresponding HAL value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
of
Converts a byte value into a POVDirection enum value.- Parameters:
value- The byte value to convert.- Returns:
- The corresponding POVDirection enum value.
- Throws:
IllegalArgumentException- If value does not correspond to a POVDirection.
-
getAngle
Gets the angle of a POVDirection.- Returns:
- The angle clockwise from straight up, or Optional.empty() if this POVDirection is CENTER.
-