Kactoos

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

HeadOf

class HeadOf<out T> : Iterator<T>

Head portion of the iterator.

There is no thread-safety guarantee.

Parameters

T - Element type

head - Number of head elements.

origin - Decorated iterator.

Since 0.4

Constructors

Name Summary
<init> HeadOf(head: Int, origin: Iterator<T>)
Head portion of the iterator.

Functions

Name Summary
hasNext fun hasNext(): Boolean
next fun next(): T