T
- Element typepublic final class Repeated<T> extends Object implements Iterable<T>
If you need to repeat endlessly, use Endless
.
Constructor and Description |
---|
Repeated(Scalar<T> elm,
int total)
Ctor.
|
Repeated(T elm,
int total)
Ctor.
|
Repeated(UncheckedScalar<T> elm,
int total)
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(T elm, int total)
elm
- The element to repeattotal
- The total number of repetitionspublic Repeated(Scalar<T> elm, int total)
elm
- The element to repeattotal
- The total number of repetitionspublic Repeated(UncheckedScalar<T> elm, int total)
elm
- The element to repeattotal
- The total number of repetitionsCopyright © 2017 Cactoos. All rights reserved.