Package org.cactoos.iterable
Class Sliced<T>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<T>
-
- org.cactoos.iterable.Sliced<T>
-
- Type Parameters:
T
- Element type
- All Implemented Interfaces:
Iterable<T>
public final class Sliced<T> extends IterableEnvelope<T>
Sliced portion of the iterable.There is no thread-safety guarantee.
- Since:
- 1.0.0
-
-
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
-
Sliced
@SafeVarargs public Sliced(int start, int count, T... items)
Ctor.- Parameters:
start
- Starting indexcount
- Maximum number of elements for resulted iteratoritems
- Varargs items
-
-