Class FilterIterator<T>
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.FilterIterator<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
FilterIterator
public class FilterIterator<T> extends Object implements Iterator<T>
Iterator filtering out items which do not match a given predicate.
-
-
Constructor Summary
Constructors Constructor Description FilterIterator(Iterator<T> iterator, Predicate predicate)
Create a new filtered iterator based on the giveniterator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
remove()
-
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
-
-
-
-
Method Detail
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<T>
- Throws:
UnsupportedOperationException
- always- See Also:
Iterator.remove()
-
-