Class AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing.SlicingIterable.SlicingIterator

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing.SlicingIterable.SlicingIterator
All Implemented Interfaces:
Iterator<List<Class<?>>>
Enclosing class:
AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing.SlicingIterable

protected static class AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing.SlicingIterable.SlicingIterator extends Object implements Iterator<List<Class<?>>>
An iterator that slices batches into parts of a minimum and maximum size.
  • Field Details

    • minimum

      private final int minimum
      The minimum size of any slice.
    • maximum

      private final int maximum
      The maximum size of any slice.
    • iterator

      private final Iterator<? extends List<Class<?>>> iterator
      The delegate iterator.
    • buffer

      private List<Class<?>> buffer
      A buffer containing all types that surpassed the maximum.
  • Constructor Details

    • SlicingIterator

      protected SlicingIterator(int minimum, int maximum, Iterator<? extends List<Class<?>>> iterator)
      Creates a new slicing iterator.
      Parameters:
      minimum - The minimum size of any slice.
      maximum - The maximum size of any slice.
      iterator - The delegate iterator.
  • Method Details