Package org.cactoos.iterable
Class Repeated<T>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<T>
-
- org.cactoos.iterable.Repeated<T>
-
- Type Parameters:
T
- Element type
- All Implemented Interfaces:
Iterable<T>
public final class Repeated<T> extends IterableEnvelope<T>
Repeat an element.If you need to repeat endlessly, use
Endless
.- Since:
- 0.1
-
-
Method Summary
-
Methods inherited from class org.cactoos.iterable.IterableEnvelope
equals, hashCode, iterator, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-