- Type Parameters:
F - 对象
T - 对象
- All Implemented Interfaces:
Iterator<T>
public class TransitionIterator<F,T>
extends Object
implements Iterator<T>
转换迭代器
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TransitionIterator
public TransitionIterator(Iterator<? extends F> backingIterator,
Function<? super F,? extends T> func)
构造
- Parameters:
backingIterator - 源Iterator
func - 转换函数
-
Method Details
-
hasNext
public final boolean hasNext()
- Specified by:
hasNext in interface Iterator<F>
-
-
remove
public final void remove()
- Specified by:
remove in interface Iterator<F>