Package io.github.frc5024.common_drive
Enum DriveTrainBase.States
- java.lang.Object
-
- java.lang.Enum<DriveTrainBase.States>
-
- io.github.frc5024.common_drive.DriveTrainBase.States
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DriveTrainBase.States>
- Enclosing class:
- DriveTrainBase
public static enum DriveTrainBase.States extends java.lang.Enum<DriveTrainBase.States>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kLocked
kNeutral
kOpenLoop
kPivoting
kRabbitChase
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DriveTrainBase.States
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DriveTrainBase.States[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kOpenLoop
public static final DriveTrainBase.States kOpenLoop
-
kPivoting
public static final DriveTrainBase.States kPivoting
-
kRabbitChase
public static final DriveTrainBase.States kRabbitChase
-
kLocked
public static final DriveTrainBase.States kLocked
-
kNeutral
public static final DriveTrainBase.States kNeutral
-
-
Method Detail
-
values
public static DriveTrainBase.States[] 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 (DriveTrainBase.States c : DriveTrainBase.States.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DriveTrainBase.States 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
-
-