Kactoos

kactoos-jvm / nnl.rocks.kactoos.iterator / Partitioned

Partitioned

class Partitioned<out T : Any> : Iterator<List<T>>

Iterator implementation for Iterator partitioning.

Parameters

size - Size of the partitions.

decorated - Source iterator.

T - Partitions value type

Since 0.4

Constructors

Name Summary
<init> Partitioned(size: Int, decorated: Iterator<T>)
Iterator implementation for Iterator partitioning.

Functions

Name Summary
hasNext fun hasNext(): Boolean
next fun next(): List<T>