T - 字段类型public class PartitionIterator<T> extends Object implements IterableIterator<List<T>>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Iterator<T> |
iterator
被分批的迭代器
|
protected int |
partitionSize
实际每批大小
|
| Constructor and Description |
|---|
PartitionIterator(Iterator<T> iterator,
int partitionSize)
创建分组对象
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
List<T> |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititeratorforEach, spliteratorforEachRemaining, removeCopyright © 2021. All rights reserved.