public class DBUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> List<List<T>> |
splitIntoBatches(Collection<T> objects)
Splits a collection of objects into lists with the size defined by
BATCH_SIZE.
|
static <T> List<List<Container<T>>> |
splitIntoBatchesId(Map<Integer,List<T>> objects) |
static <T> List<List<Container<T>>> |
splitIntoBatchesWithID(Map<Integer,T> objects) |
public static <T> List<List<T>> splitIntoBatches(Collection<T> objects)
T
- Object typeobjects
- Collection of the objectspublic static <T> List<List<Container<T>>> splitIntoBatchesId(Map<Integer,List<T>> objects)
T
- Object typeobjects
- Collection of the objectsCopyright © 2017. All rights reserved.