Class AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing.SlicingIterable

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.List<java.lang.Class<?>>>
    Enclosing class:
    AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing

    protected static class AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing.SlicingIterable
    extends java.lang.Object
    implements java.lang.Iterable<java.util.List<java.lang.Class<?>>>
    An iterable that slices batches into parts of a minimum and maximum size.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> iterable
      The delegate iterable.
      private int maximum
      The maximum size of any slice.
      private int minimum
      The minimum size of any slice.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SlicingIterable​(int minimum, int maximum, java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> iterable)
      Creates a new slicing iterable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<java.util.List<java.lang.Class<?>>> iterator()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • minimum

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

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

        private final java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> iterable
        The delegate iterable.
    • Constructor Detail

      • SlicingIterable

        protected SlicingIterable​(int minimum,
                                  int maximum,
                                  java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> iterable)
        Creates a new slicing iterable.
        Parameters:
        minimum - The minimum size of any slice.
        maximum - The maximum size of any slice.
        iterable - The delegate iterable.
    • Method Detail

      • iterator

        public java.util.Iterator<java.util.List<java.lang.Class<?>>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.util.List<java.lang.Class<?>>>