T
- Element typepublic final class Repeated<T> extends Object implements Iterable<T>
If you need to repeat endlessly, use Endless
.
Constructor and Description |
---|
Repeated(int total,
Scalar<T> elm)
Ctor.
|
Repeated(int total,
T elm)
Ctor.
|
Repeated(int total,
UncheckedScalar<T> elm)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Repeated(int total, T elm)
total
- The total number of repetitionselm
- The element to repeatpublic Repeated(int total, Scalar<T> elm)
total
- The total number of repetitionselm
- The element to repeatpublic Repeated(int total, UncheckedScalar<T> elm)
total
- The total number of repetitionselm
- The element to repeatCopyright © 2017 Cactoos. All rights reserved.