Class Chunked<T>

java.lang.Object
org.dmfs.jems2.iterator.BaseIterator<Iterable<T>>
org.dmfs.jems2.iterator.Chunked<T>
All Implemented Interfaces:
Iterator<Iterable<T>>

public final class Chunked<T> extends BaseIterator<Iterable<T>>
In Iterator decorator which returns the elements of the decorated Iterator in chunks of a specific size.
  • Constructor Details

    • Chunked

      public Chunked(int chunkSize, Iterator<T> delegate)
  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public Iterable<T> next()