|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.swans.misc.Enumerator
public class Enumerator
Class to generate a sequence; used usually for static initialization of constants.
| Field Summary | |
|---|---|
private static int |
num
internal sequence counter. |
| Constructor Summary | |
|---|---|
Enumerator()
|
|
| Method Summary | |
|---|---|
static int |
next()
Return next value in sequence. |
static int |
reset()
Zero counter. |
static int |
reset(int start)
Reset counter value to given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static int num
| Constructor Detail |
|---|
public Enumerator()
| Method Detail |
|---|
public static int reset(int start)
start - value to reset counter to
public static int reset()
public static int next()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||