Kactoos

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

Immutable

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

Iterator that doesn’t allow removal of elements.

There is no thread-safety guarantee.

Parameters

T - Element type.

iterator - Encapsulated iterator.

Since 0.4

Constructors

Name Summary
<init> Immutable(iterator: Iterator<T>)
Iterator that doesn’t allow removal of elements.

Functions

Name Summary
next fun next(): T