Package org.dmfs.jems2.iterable
Class Chunked<T>
- java.lang.Object
-
- org.dmfs.jems2.iterable.Chunked<T>
-
- All Implemented Interfaces:
java.lang.Iterable<java.lang.Iterable<T>>
public final class Chunked<T> extends java.lang.Object implements java.lang.Iterable<java.lang.Iterable<T>>AnIterabledecorator which returns the elements of the decoratedIterablein chunks of a specific size.Example
Chunked(3, [2, 4, 6, 8, 10, 12, 14, 16]) -> [ [2, 4, 6], [8, 10, 12], [14, 16] ]
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<java.lang.Iterable<T>>iterator()
-