Class IterChain<T>
java.lang.Object
org.miaixz.bus.core.center.iterator.IterChain<T>
- Type Parameters:
T- 元素类型
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
allIterators
-
currentIter
protected int currentIter
-
-
Constructor Details
-
IterChain
public IterChain()构造 可以使用addChain(Iterator)方法加入更多的集合。 -
IterChain
构造- Parameters:
iterators- 多个Iterator- Throws:
IllegalArgumentException- 当存在重复的迭代器,或添加的迭代器中存在null时抛出
-
-
Method Details
-
addChain
添加迭代器 -
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
iterator
-