T
- public final class Partitions<T> extends AbstractList<List<T>>
List
Partition.ofSize(numbers, 3); Partition.ofSize(numbers, 2);
[[1, 2, 3], [4, 5, 6], [7]] [[1, 2], [3, 4], [5, 6], [7]]
modCount
Modifier and Type | Method and Description |
---|---|
List<T> |
get(int index) |
static <T> Partitions<T> |
ofSize(List<T> list,
int chunkSize) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public static <T> Partitions<T> ofSize(List<T> list, int chunkSize)
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries