T
- Element typepublic final class Endless<T> extends Object implements Iterator<T>
If you need to repeat certain amount of time,
use Repeated
.
Constructor and Description |
---|
Endless(Scalar<T> scalar)
Ctor.
|
Endless(T element)
Ctor.
|
Endless(UncheckedScalar<T> scalar)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public Endless(T element)
element
- Element to repeatpublic Endless(UncheckedScalar<T> scalar)
scalar
- Scalar to repeatCopyright © 2017 Cactoos. All rights reserved.