Class ChunkIterator<T>
java.lang.Object
dev.dimlight.maven.plugin.shellcheck.ChunkIterator<T>
- Type Parameters:
T- the type of elements in the original list.
A stateful decorator to divide a list in chunks of a (at most) given size.
- Author:
- Marco Nicolini
-
Method Details
-
over
- Type Parameters:
T- the type of elements in the iterable- Parameters:
chunkSize- the max chunk size.iterable- the iterable we want to iterate over (in chunk)- Returns:
- an iterator that will group items in chunks of (maximum) given chunk size.
-
hasNext
public boolean hasNext() -
next
-