Package org.cactoos.iterator
Class Matched<X,Y>
- java.lang.Object
-
- org.cactoos.iterator.Matched<X,Y>
-
- Type Parameters:
X
- Type of item in first iterator.Y
- Type of item in second iterator.
- All Implemented Interfaces:
Iterator<X>
public final class Matched<X,Y> extends Object implements Iterator<X>
Matched iterator. Iterates over 2 iterators at the same time and verify that elements with the same position has correlation by the function. The function might be equals, endsWith, greaterThen, nonNull, empty, negative, positive, etc.- Since:
- 0.47
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
X
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-