Package org.cactoos.iterable
Class Sticky<X>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<X>
-
- org.cactoos.iterable.Sticky<X>
-
- Type Parameters:
X
- Type of item
- All Implemented Interfaces:
Iterable<X>
public final class Sticky<X> extends IterableEnvelope<X>
Iterable that returns the same set of elements, always.There is no thread-safety guarantee.
- 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
-
-
-
-
Constructor Detail
-
Sticky
@SafeVarargs public Sticky(X... src)
Ctor.- Parameters:
src
- The underlying iterable
-
-