protected static class AgentBuilder.RedefinitionStrategy.Listener.Compound.CompoundIterable.CompoundIterator
extends java.lang.Object
implements java.util.Iterator<java.util.List<java.lang.Class<?>>>
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>>> |
backlog
A backlog of iterables to still consider.
|
private java.util.Iterator<? extends java.util.List<java.lang.Class<?>>> |
current
The current iterator or
null if no such iterator is defined. |
Modifier | Constructor and Description |
---|---|
protected |
CompoundIterator(java.util.List<java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>>> iterables)
Creates a compound iterator.
|
Modifier and Type | Method and Description |
---|---|
private void |
forward()
Forwards the iterator to the next relevant iterable.
|
boolean |
hasNext() |
java.util.List<java.lang.Class<?>> |
next() |
void |
remove() |
private java.util.Iterator<? extends java.util.List<java.lang.Class<?>>> current
null
if no such iterator is defined.private final java.util.List<java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>>> backlog
protected CompoundIterator(java.util.List<java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>>> iterables)
iterables
- The iterables to consider.public boolean hasNext()
hasNext
in interface java.util.Iterator<java.util.List<java.lang.Class<?>>>
public java.util.List<java.lang.Class<?>> next()
next
in interface java.util.Iterator<java.util.List<java.lang.Class<?>>>
private void forward()
public void remove()
remove
in interface java.util.Iterator<java.util.List<java.lang.Class<?>>>