Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.Listener.Compound.CompoundIterable.CompoundIterator
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener.Compound.CompoundIterable.CompoundIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.util.List<java.lang.Class<?>>>
- Enclosing class:
- AgentBuilder.RedefinitionStrategy.Listener.Compound.CompoundIterable
protected static class AgentBuilder.RedefinitionStrategy.Listener.Compound.CompoundIterable.CompoundIterator extends java.lang.Object implements java.util.Iterator<java.util.List<java.lang.Class<?>>>A compound iterator that combines several iterables.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>>>backlogA backlog of iterables to still consider.private java.util.Iterator<? extends java.util.List<java.lang.Class<?>>>currentThe current iterator ornullif no such iterator is defined.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompoundIterator(java.util.List<java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>>> iterables)Creates a compound iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidforward()Forwards the iterator to the next relevant iterable.booleanhasNext()java.util.List<java.lang.Class<?>>next()voidremove()
-
-
-
Field Detail
-
current
@MaybeNull private java.util.Iterator<? extends java.util.List<java.lang.Class<?>>> current
The current iterator ornullif no such iterator is defined.
-
backlog
private final java.util.List<java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>>> backlog
A backlog of iterables to still consider.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.util.List<java.lang.Class<?>>>
-
next
public java.util.List<java.lang.Class<?>> next()
- Specified by:
nextin interfacejava.util.Iterator<java.util.List<java.lang.Class<?>>>
-
forward
private void forward()
Forwards the iterator to the next relevant iterable.
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.util.List<java.lang.Class<?>>>
-
-