public class ListUtils extends Object
| Constructor and Description |
|---|
ListUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<List<T>> |
chunkifyList(List<T> list,
int maxChunkSize)
Splits a list into a set of sublists (preserving order) where
the size of each sublist is bound by a given max size, and
ensuring that no list has fewer than half the max size number
of elements.
|
public static <T> List<List<T>> chunkifyList(List<T> list, int maxChunkSize)
list - list to be chunkifiedmaxChunkSize - how big you want the chunks to beCopyright © 2012–2014 Berico Technologies. All rights reserved.