Package org.cactoos.iterable
Class Partitioned<T>
- java.lang.Object
-
- org.cactoos.iterable.IterableEnvelope<List<T>>
-
- org.cactoos.iterable.Partitioned<T>
-
- Type Parameters:
T
- Partitions value type
public final class Partitioned<T> extends IterableEnvelope<List<T>>
Iterable implementation for partitioning functionality.- Since:
- 0.29
-
-
Constructor Summary
Constructors Constructor Description Partitioned(int size, Iterable<? extends T> iterable)
Ctor.Partitioned(int size, T... items)
Ctor.
-
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
-
Partitioned
@SafeVarargs public Partitioned(int size, T... items)
Ctor.- Parameters:
size
- The partitions size.items
- The source items.
-
-