Class AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.OrderedReiteratingIterator

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.OrderedReiteratingIterator
All Implemented Interfaces:
Iterator<Iterable<Class<?>>>
Enclosing class:
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption

protected static class AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.OrderedReiteratingIterator extends Object implements Iterator<Iterable<Class<?>>>
An iterator that reiterates over an array of loaded classes by the previously observed length.
  • Field Details

    • instrumentation

      private final Instrumentation instrumentation
      The instrumentation instance to use.
    • index

      private int index
      The length of the last known array of known classes.
    • types

      @MaybeNull private List<Class<?>> types
      The current list of types or null if the current list of types is not prepared.
  • Constructor Details

    • OrderedReiteratingIterator

      protected OrderedReiteratingIterator(Instrumentation instrumentation)
      Creates a new reiterating iterator.
      Parameters:
      instrumentation - The instrumentation instance to use.
  • Method Details