Kactoos

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

Mapped

class Mapped<out X : Any, out Y : Any> : Iterator<Y>

Mapped iterator.

There is no thread-safety guarantee.

Parameters

X - Type of source item

Y - Type of target item

func - Mapping function

origin - Decorated iterator

Since 0.4

Constructors

Name Summary
<init> Mapped(func: Func<X, Y>, origin: Iterator<X>)Mapped(func: KFunc<X, Y>, origin: Iterator<X>)
Mapped iterator.

Functions

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