Package com.turtlequeue
Enum ConsumerPossibleStates
- java.lang.Object
-
- java.lang.Enum<ConsumerPossibleStates>
-
- com.turtlequeue.ConsumerPossibleStates
-
- All Implemented Interfaces:
Serializable,Comparable<ConsumerPossibleStates>
public enum ConsumerPossibleStates extends Enum<ConsumerPossibleStates>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConsumerPossibleStatesvalueOf(String name)Returns the enum constant of this type with the specified name.static ConsumerPossibleStates[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Idle
public static final ConsumerPossibleStates Idle
-
Ready
public static final ConsumerPossibleStates Ready
-
Stopping
public static final ConsumerPossibleStates Stopping
-
Paused
public static final ConsumerPossibleStates Paused
-
Seeking
public static final ConsumerPossibleStates Seeking
-
-
Method Detail
-
values
public static ConsumerPossibleStates[] 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 (ConsumerPossibleStates c : ConsumerPossibleStates.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsumerPossibleStates 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
-
-