Class Chunked<T>

  • All Implemented Interfaces:
    java.util.Iterator<java.lang.Iterable<T>>

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

      Constructors 
      Constructor Description
      Chunked​(int chunkSize, java.util.Iterator<T> delegate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.lang.Iterable<T> next()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • Chunked

        public Chunked​(int chunkSize,
                       java.util.Iterator<T> delegate)
    • Method Detail

      • hasNext

        public boolean hasNext()
      • next

        public java.lang.Iterable<T> next()