Package net.bytebuddy.build
Class Plugin.Engine.Source.Compound.Origin.CompoundIterator
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Source.Compound.Origin.CompoundIterator
- All Implemented Interfaces:
Iterator<Plugin.Engine.Source.Element>
- Enclosing class:
Plugin.Engine.Source.Compound.Origin
protected static class Plugin.Engine.Source.Compound.Origin.CompoundIterator
extends Object
implements Iterator<Plugin.Engine.Source.Element>
A compound iterator that combines several iterables.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<? extends Iterable<? extends Plugin.Engine.Source.Element>> A backlog of iterables to still consider.private Iterator
<? extends Plugin.Engine.Source.Element> The current iterator ornull
if no such iterator is defined. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CompoundIterator
(List<? extends Iterable<? extends Plugin.Engine.Source.Element>> iterables) Creates a compound iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
current
The current iterator ornull
if no such iterator is defined. -
backlog
A backlog of iterables to still consider.
-
-
Constructor Details
-
CompoundIterator
protected CompoundIterator(List<? extends Iterable<? extends Plugin.Engine.Source.Element>> iterables) Creates a compound iterator.- Parameters:
iterables
- The iterables to consider.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<Plugin.Engine.Source.Element>
-
next
- Specified by:
next
in interfaceIterator<Plugin.Engine.Source.Element>
-
forward
private void forward()Forwards the iterator to the next relevant iterable. -
remove
public void remove()- Specified by:
remove
in interfaceIterator<Plugin.Engine.Source.Element>
-