|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iglu.util.Sequence
Implements an automatic sequence of integers. The sequence is not save between runs of the program. This is useful for generating unique id numbers.
Field Summary | |
private long |
current
the counter |
Constructor Summary | |
Sequence()
Creates a new sequence starting at 0 |
|
Sequence(int n)
Creates a new sequence starting at n |
Method Summary | |
java.lang.Long |
getNext()
Returns the next number in the sequence |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private long current
Constructor Detail |
public Sequence()
public Sequence(int n)
Method Detail |
public java.lang.Long getNext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |