|
||||||||||
| 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
com.hp.hpl.jena.util.iterator.WrappedIterator
com.hp.hpl.jena.util.iterator.FilterIterator
public class FilterIterator
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 fl,
java.util.Iterator e)
Initialises a FilterIterator with its filter and base. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Answer true iff there is at least one more acceptable object. |
java.lang.Object |
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 fl,
java.util.Iterator 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.IteratorhasNext in class WrappedIteratorpublic void remove()
remove in interface java.util.Iteratorremove in class WrappedIteratorpublic java.lang.Object next()
next in interface java.util.Iteratornext in class WrappedIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||