|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.acorn.util.UnmodifiableCollection
org.norther.tammi.acorn.util.CounterCollection
public class CounterCollection
A collection returning Boolean.TRUE for the specified number of times.
| Constructor Summary | |
|---|---|
CounterCollection()
Constructs an endless counter. |
|
CounterCollection(int size)
Constructs a new counter. |
|
| Method Summary | |
|---|---|
boolean |
isEmpty()
|
boolean |
isLast()
Checks whether the current iterator has its last item. |
Iterator |
iterator()
|
void |
setSize(int size)
Sets the size of this collection. |
int |
size()
|
void |
stop()
Stops the latest iterator, if any. |
| Methods inherited from class org.norther.tammi.acorn.util.UnmodifiableCollection |
|---|
add, addAll, clear, clone, contains, containsAll, equals, getCollection, hashCode, remove, removeAll, retainAll, setCollection, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CounterCollection()
public CounterCollection(int size)
size - the size of the counter.| Method Detail |
|---|
public boolean isEmpty()
isEmpty in interface CollectionisEmpty in class UnmodifiableCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in class UnmodifiableCollectionpublic int size()
size in interface Collectionsize in class UnmodifiableCollectionpublic boolean isLast()
public void setSize(int size)
Note that the size of current iterators is not changed.
size - the new size.public void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||