Package edu.wpi.grip.core.util
Enum GripMode
- java.lang.Object
-
- java.lang.Enum<GripMode>
-
- edu.wpi.grip.core.util.GripMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GripMode>
public enum GripMode extends java.lang.Enum<GripMode>
An enum that indicates if GRIP is running in GUI mode with JavaFX or as a headless command line application. To the get the mode, this can be injected into a class (ie: @Inject private GRIPMode mode;)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GripMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GripMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static GripMode[] 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 (GripMode c : GripMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GripMode 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 namejava.lang.NullPointerException
- if the argument is null
-
-