public final class AbortiveMultiIterator<T> extends Object implements Iterator<T>, Serializable, AutoCloseable
Iterator that checks a Predicate prior to processing the specified child Iterator
 instances.| Constructor and Description | 
|---|
| AbortiveMultiIterator() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addIterator(Iterator<T> iterator)Adds an  Iteratorthat will always be iterated. | 
| void | addIterator(Iterator<T> iterator,
           Predicate<Long> check)Adds an  Iteratorthat will iterate only if thecheckpasses. | 
| void | clear() | 
| void | close()Close the underlying iterators if auto-closeable. | 
| boolean | hasNext() | 
| T | next() | 
| void | remove() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic void addIterator(Iterator<T> iterator)
Iterator that will always be iterated.public void addIterator(Iterator<T> iterator, Predicate<Long> check)
Iterator that will iterate only if the check passes.check - when returning true processing of the associated Iterator will proceedpublic void clear()
public void close()
close in interface AutoCloseableCopyright © 2013–2022 Apache Software Foundation. All rights reserved.