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, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic 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