Class RangeBasedSpliterator.OfSubLists<T>

All Implemented Interfaces:
Cloneable, Spliterator<List<T>>
Enclosing class:
RangeBasedSpliterator<T,S extends RangeBasedSpliterator<T,?>>

static final class RangeBasedSpliterator.OfSubLists<T> extends RangeBasedSpliterator<List<T>,RangeBasedSpliterator.OfSubLists<T>>
  • Field Details

    • source

      private final List<T> source
    • length

      private final int length
    • shift

      private final int shift
    • listSize

      private final int listSize
  • Constructor Details

    • OfSubLists

      public OfSubLists(List<T> source, int length, int shift)
  • Method Details

    • tryAdvance

      public boolean tryAdvance(Consumer<? super List<T>> action)
    • forEachRemaining

      public void forEachRemaining(Consumer<? super List<T>> action)