kactoos-jvm / nnl.rocks.kactoos.iterator / Endless
class Endless<out T :
Any
> :
Iterator
<
T
>
Iterator that never ends.
If you need to repeat certain amount of time, use Repeated.
If you need endless cycle from iterator, use Cycled.
T
- Element type.
element
- Element to repeat.
Since 0.3
Name | Summary |
---|---|
<init> | Endless(element: T ) Endless(element: Scalar < T >) Endless(element: KScalar < T >) Iterator that never ends. |
Name | Summary |
---|---|
hasNext | fun hasNext(): Boolean |
next | fun next(): T |