Package org.apache.camel.util
Class FilterIterator<T>
- java.lang.Object
-
- org.apache.camel.util.FilterIterator<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<T>
public class FilterIterator<T> extends Object implements Iterator<T>, Closeable
A filtering iterator
-
-
Constructor Summary
Constructors Constructor Description FilterIterator(Iterator<T> it)FilterIterator(Iterator<T> it, Predicate<T> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TcheckNext()voidclose()booleanhasNext()Tnext()voidremove()-
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
-
-
-
-
Constructor Detail
-
FilterIterator
public FilterIterator(Iterator<T> it)
-
FilterIterator
public FilterIterator(Iterator<T> it, Predicate<T> filter)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-