Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.Collector.PrependableIterator
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Collector.PrependableIterator
- Enclosing class:
AgentBuilder.RedefinitionStrategy.Collector
protected static class AgentBuilder.RedefinitionStrategy.Collector.PrependableIterator
extends Object
implements Iterator<List<Class<?>>>
An iterator that allows prepending of iterables to be applied previous to another iterator.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PrependableIterator
(Iterable<? extends List<Class<?>>> origin) Creates a new prependable 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. -
backlog
The backlog of iterators to apply.
-
-
Constructor Details
-
PrependableIterator
Creates a new prependable iterator.- Parameters:
origin
- The original iterable to begin with.
-
-
Method Details
-
prepend
Prepends an iterable to the backlog.- Parameters:
iterable
- The iterable to prepend.
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-