|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.util.CounterIterator
public class CounterIterator
An iterator returning Boolean.TRUE for the specified number of times.
| Constructor Summary | |
|---|---|
CounterIterator()
Constructs an endless counter. |
|
CounterIterator(int size)
Constructs a new counter. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
Object |
next()
|
void |
remove()
|
void |
stop()
Stops the counter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CounterIterator()
public CounterIterator(int size)
size - the size of the counter.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic void remove()
remove in interface Iteratorpublic void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||