Package edu.wpi.first.math.filter
Enum Debouncer.DebounceType
- java.lang.Object
-
- java.lang.Enum<Debouncer.DebounceType>
-
- edu.wpi.first.math.filter.Debouncer.DebounceType
-
- All Implemented Interfaces:
Serializable
,Comparable<Debouncer.DebounceType>
- Enclosing class:
- Debouncer
public static enum Debouncer.DebounceType extends Enum<Debouncer.DebounceType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Debouncer.DebounceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Debouncer.DebounceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kRising
public static final Debouncer.DebounceType kRising
-
kFalling
public static final Debouncer.DebounceType kFalling
-
kBoth
public static final Debouncer.DebounceType kBoth
-
-
Method Detail
-
values
public static Debouncer.DebounceType[] 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 (Debouncer.DebounceType c : Debouncer.DebounceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Debouncer.DebounceType 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
-
-