T
- public class AggregateIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Modifier and Type | Field and Description |
---|---|
private T |
current
Current element position.
|
private java.util.Iterator<T> |
currentIterator
Current iterator position.
|
private java.util.Iterator<java.util.Iterator<T>> |
iterators
Iterators of iterators.
|
private T |
next
Next element position.
|
private java.util.Collection<?> |
removeColl
Collection of removed elements.
|
Constructor and Description |
---|
AggregateIterator(java.util.Collection<?> collRemove,
java.util.List<java.util.Iterator<T>> listIterators) |
Modifier and Type | Method and Description |
---|---|
private java.util.Iterator<T> |
getNextIterator()
Get next Iterator.
|
boolean |
hasNext() |
T |
next() |
void |
remove() |
private final java.util.Collection<?> removeColl
private final java.util.Iterator<java.util.Iterator<T>> iterators
private java.util.Iterator<T> currentIterator
private T next
private T current
public AggregateIterator(java.util.Collection<?> collRemove, java.util.List<java.util.Iterator<T>> listIterators)
collRemove
- collection of removed entries to check againstlistIterators
- collection of iteratorspublic final boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public final void remove()
remove
in interface java.util.Iterator<T>
private java.util.Iterator<T> getNextIterator()