Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.OrderedReiteratingIterator
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.OrderedReiteratingIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
- Enclosing class:
- AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption
protected static class AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.OrderedReiteratingIterator extends java.lang.Object implements java.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
An iterator that reiterates over an array of loaded classes by the previously observed length.
-
-
Field Summary
Fields Modifier and Type Field Description private int
index
The length of the last known array of known classes.private java.lang.instrument.Instrumentation
instrumentation
The instrumentation instance to use.private java.util.List<java.lang.Class<?>>
types
The current list of types ornull
if the current list of types is not prepared.
-
Constructor Summary
Constructors Modifier Constructor Description protected
OrderedReiteratingIterator(java.lang.instrument.Instrumentation instrumentation)
Creates a new reiterating iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
java.lang.Iterable<java.lang.Class<?>>
next()
void
remove()
-
-
-
Field Detail
-
instrumentation
private final java.lang.instrument.Instrumentation instrumentation
The instrumentation instance to use.
-
index
private int index
The length of the last known array of known classes.
-
types
@MaybeNull private java.util.List<java.lang.Class<?>> types
The current list of types ornull
if the current list of types is not prepared.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
-
next
public java.lang.Iterable<java.lang.Class<?>> next()
- Specified by:
next
in interfacejava.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<java.lang.Iterable<java.lang.Class<?>>>
-
-