java.lang.Object
io.ebean.Lists
Helper methods for Lists.
-
Method Summary
-
Method Details
-
partition
Partition the source List into sub-lists with a maximum size.The sub-lists will all be the max size except for the last sub-list which can potentially be smaller.
- Type Parameters:
T
- The list element type- Parameters:
source
- The source listmax
- The max size of each partition- Returns:
- List of sub-list partitions
-