Package com.logicaldoc.util
Class CollectionUtil
java.lang.Object
com.logicaldoc.util.CollectionUtil
Some utility methods to handle collections.
- Since:
- 8.2.1
- Author:
- Marco Meschieri - LogicalDOC
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Collection<List<T>> Divide a list to segments of n size
-
Method Details
-
partition
Divide a list to segments of n size- Type Parameters:
T- the type of elements inlist- Parameters:
list- the collection to processsize- number of elements in each segment- Returns:
- the collection of segments
-