public static enum Sequence.Cycle extends java.lang.Enum<Sequence.Cycle>
| Enum Constant and Description |
|---|
CYCLE
Sequence is cycled.
|
EXHAUSTED
Sequence is not cycled and was already exhausted.
|
NO_CYCLE
Sequence is not cycled and isn't exhausted yet.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCycle()
Return whether sequence is cycled.
|
static Sequence.Cycle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Sequence.Cycle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sequence.Cycle CYCLE
public static final Sequence.Cycle NO_CYCLE
public static final Sequence.Cycle EXHAUSTED
public static Sequence.Cycle[] values()
for (Sequence.Cycle c : Sequence.Cycle.values()) System.out.println(c);
public static Sequence.Cycle valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isCycle()
true if sequence is cycled, false if sequence
is not cycled