Package edu.wpi.first.wpilibj
Enum Encoder.IndexingType
- java.lang.Object
-
- java.lang.Enum<Encoder.IndexingType>
-
- edu.wpi.first.wpilibj.Encoder.IndexingType
-
- All Implemented Interfaces:
Serializable
,Comparable<Encoder.IndexingType>
- Enclosing class:
- Encoder
public static enum Encoder.IndexingType extends Enum<Encoder.IndexingType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kResetOnFallingEdge
kResetOnRisingEdge
kResetWhileHigh
kResetWhileLow
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Encoder.IndexingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Encoder.IndexingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kResetWhileHigh
public static final Encoder.IndexingType kResetWhileHigh
-
kResetWhileLow
public static final Encoder.IndexingType kResetWhileLow
-
kResetOnFallingEdge
public static final Encoder.IndexingType kResetOnFallingEdge
-
kResetOnRisingEdge
public static final Encoder.IndexingType kResetOnRisingEdge
-
-
Field Detail
-
value
public final int value
-
-
Method Detail
-
values
public static Encoder.IndexingType[] 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 (Encoder.IndexingType c : Encoder.IndexingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Encoder.IndexingType 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
-
-