java.util.Collection that lazily reads its elements from an java.util.Iterator .
In other words, you can call iterator() as often as you want, but the IteratorCollection will
iterate over its delegate only once.
| Modifier and Type | Field and Description |
|---|---|
| private final List | elements
Lazily-filled collection of the elements delivered by the delegate. |
| private final Iterator | iterator
The delegate. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| elements | back to summary |
|---|---|
| private final List<T> elements Lazily-filled collection of the elements delivered by the delegate. | |
| iterator | back to summary |
|---|---|
| private final Iterator<T> iterator The delegate. | |
| IteratorCollection | back to summary |
|---|---|
| public IteratorCollection(Iterator<T> iterator) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements contained in this collection. | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this collection. If this collection
contains more than
| |