Kactoos

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

TailOf

class TailOf<out T : Any> : Iterator<T>

Tail portion of the iterator.

There is no thread-safety guarantee.

Parameters

T - Element type

iterator - Decorated iterator

num - Number of tail elements

Since 0.4

Constructors

Name Summary
<init> TailOf(num: Int, iterator: Iterator<T>)
Tail portion of the iterator.

Functions

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