| 限定符和类型 | 字段和说明 |
|---|---|
protected List<Iterator<T>> |
allIterators |
protected int |
currentIter |
| 构造器和说明 |
|---|
IterChain()
构造
可以使用
addChain(Iterator) 方法加入更多的集合。 |
IterChain(Iterator<T>... iterators)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
IterChain<T> |
addChain(Iterator<T> iterator)
添加迭代器
|
boolean |
hasNext() |
Iterator<Iterator<T>> |
iterator() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic IterChain()
addChain(Iterator) 方法加入更多的集合。@SafeVarargs public IterChain(Iterator<T>... iterators)
iterators - 多个IteratorIllegalArgumentException - 当存在重复的迭代器,或添加的迭代器中存在null时抛出Copyright © 2024. All rights reserved.