Modifier and Type | Field and Description |
---|---|
protected List<Iterator<T>> |
allIterators |
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, wait
forEachRemaining
forEach, spliterator
public IterChain()
addChain(Iterator)
方法加入更多的集合。@SafeVarargs public IterChain(Iterator<T>... iterators)
iterators
- 多个Iterator
Copyright © 2024. All rights reserved.