T
- Element typepublic final class RepeatIterable<T> extends Object implements Iterable<T>
If you need to repeat endlessly, use EndlessIterable
.
Constructor and Description |
---|
RepeatIterable(Scalar<T> elm,
int cnt)
Ctor.
|
RepeatIterable(T elm,
int cnt)
Ctor.
|
RepeatIterable(UncheckedScalar<T> elm,
int cnt)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public RepeatIterable(T elm, int cnt)
elm
- To repeatcnt
- Countpublic RepeatIterable(Scalar<T> elm, int cnt)
elm
- To repeatcnt
- Countpublic RepeatIterable(UncheckedScalar<T> elm, int cnt)
elm
- To repeatcnt
- CountCopyright © 2017 Cactoos. All rights reserved.