| Modifier and Type | Field and Description |
|---|---|
protected List<Iterator<T>> |
allIterators
所有的Iterator
|
protected int |
currentIter
当前位置
|
| Constructor and Description |
|---|
IterChain()
构造
可以使用
addChain(Iterator) 方法加入更多的集合。 |
IterChain(Iterator<T>... iterators)
构造
|
| Modifier and Type | Method and Description |
|---|---|
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 © 2025. All rights reserved.