Class FilterIterator<T>
java.lang.Object
org.apache.camel.util.FilterIterator<T>
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<T>
A filtering iterator
-
Constructor Summary
ConstructorsConstructorDescriptionFilterIterator(Iterator<T> it) FilterIterator(Iterator<T> it, Predicate<T> filter) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Constructor Details
-
FilterIterator
-
FilterIterator
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
hasNext
-
next
-
remove
-
checkNext
-