public class CompoundIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
RepeatableIterator.create(Object).| Constructor and Description |
|---|
CompoundIterator(java.util.Iterator<? extends java.lang.Object> iterator)
Creates a compound iterator that will iterated over the elements
of the provided
iterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove()
Remove is not supported by this iterator so calling this method
will always yield an exception.
|
public CompoundIterator(java.util.Iterator<? extends java.lang.Object> iterator)
iterator. Each element will be coerced
into an iterator and its elements in turn are returned
in succession by the compound iterator.iterator - public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>java.lang.UnsupportedOperationException