T
- the type of items in the list to be partitionedpublic class CmsListSplitter<T extends I_CmsHasSize>
extends java.lang.Object
构造器和说明 |
---|
CmsListSplitter(java.util.List<T> items,
int batchSize)
Creates a new instance of a list splitter.
|
public CmsListSplitter(java.util.List<T> items, int batchSize)
items
- the list of items to splitbatchSize
- the minimum size of the batches (except for the last batch)public java.util.List<T> getMore()
This will fail if there are no more items.
public boolean hasMore()