Class FilterIterator<T>
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.FilterIterator<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
java.util.Iterator<T>
- Direct Known Subclasses:
FilterIterator
public class FilterIterator<T> extends java.lang.Object implements java.util.Iterator<T>
Iterator filtering out items which do not match a given predicate.
-
-
Constructor Summary
Constructors Constructor Description FilterIterator(java.util.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()
-