|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.util.iterator.NiceIterator<T>
com.hp.hpl.jena.util.iterator.WrappedIterator<T>
com.hp.hpl.jena.util.iterator.FilterIterator<T>
public class FilterIterator<T>
Creates a sub-Iterator by filtering. This class should not be used directly any more; the subclasses FilterKeepIterator and FilterDropIterator should be used instead.
Constructor Summary | |
---|---|
FilterIterator(Filter<T> fl,
java.util.Iterator<T> e)
Initialises a FilterIterator with its filter and base. |
Method Summary | |
---|---|
boolean |
hasNext()
Answer true iff there is at least one more acceptable object. |
T |
next()
Answer the next acceptable object from the base iterator. |
void |
remove()
Remove the current member from the underlying iterator. |
Methods inherited from class com.hp.hpl.jena.util.iterator.WrappedIterator |
---|
close, close, create, createNoRemove, forTestingOnly_getBase |
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator |
---|
andThen, andThen, asList, asSet, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterIterator(Filter<T> fl, java.util.Iterator<T> e)
fl
- An object is included if it is accepted by this Filter.e
- The base Iterator.Method Detail |
---|
public boolean hasNext()
current
, sets canRemove
false; answer preserved in `hasCurrent`]
hasNext
in interface java.util.Iterator<T>
hasNext
in class WrappedIterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
remove
in class WrappedIterator<T>
public T next()
next
in interface java.util.Iterator<T>
next
in class WrappedIterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |