Package org.cactoos.iterable
Class HeadOf<T>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<T>
-
- org.cactoos.iterable.HeadOf<T>
-
- Type Parameters:
T
- Element type
- All Implemented Interfaces:
Iterable<T>
public final class HeadOf<T> extends IterableEnvelope<T>
Head portion of the iterable.There is no thread-safety guarantee.
- Since:
- 0.8
-
-
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
-
HeadOf
@SafeVarargs public HeadOf(int num, T... src)
Ctor.- Parameters:
num
- Number of head elementssrc
- The underlying iterable
-
-