|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Sequence.State>
dk.rode.thesis.meta.model.Sequence.State
public static enum Sequence.State
The possible internal states a Sequence can have.
Sequence.state()| Enum Constant Summary | |
|---|---|
NORMAL
Internal state of any sequence unless START, RESET,
or RESTART applies to it. |
|
RESET
Internal state explicitly set using Sequence.reset(). |
|
RESTART
A bounded and consistent
sequence will have this internal state if it has restarted its
sequence of values. |
|
START
Initial internal state: neither Sequence.next(), nor
Sequence.reset() has been invoked yet. |
|
| Method Summary | |
|---|---|
static Sequence.State |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Sequence.State[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Sequence.State NORMAL
START, RESET,
or RESTART applies to it.
public static final Sequence.State RESET
Sequence.reset().
public static final Sequence.State RESTART
bounded and consistent
sequence will have this internal state if it has restarted its
sequence of values.
public static final Sequence.State START
Sequence.next(), nor
Sequence.reset() has been invoked yet.
However, a current value
can still be obtained as sequences never return
null values.
| Method Detail |
|---|
public static Sequence.State valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static Sequence.State[] values()
for (Sequence.State c : Sequence.State.values()) System.out.println(c);
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||