|
||||||||||
| 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.MapFilterIterator
public class MapFilterIterator
A MapFilterIterator takes a MapFilter and an [Extended]Iterator and returns a new ExtendedIterator which delivers the sequence of all non-null elements MapFilter(X) for X from the base iterator.
| Constructor Summary | |
|---|---|
MapFilterIterator(MapFilter fl,
ExtendedIterator e)
Creates a sub-Iterator. |
|
| Method Summary | |
|---|---|
void |
close()
default close: don't need to do anything. |
boolean |
hasNext()
Are there any more acceptable objects. |
java.lang.Object |
next()
The next acceptable object in the iterator. |
void |
remove()
remove's the member from the underlying Iterator;
hasNext() may not be called between calls to
next() and remove(). |
| Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator |
|---|
andThen, andThen, asList, asSet, close, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.util.iterator.ExtendedIterator |
|---|
andThen, filterDrop, filterKeep, mapWith, removeNext, toList, toSet |
| Constructor Detail |
|---|
public MapFilterIterator(MapFilter fl,
ExtendedIterator e)
fl - An object is included if it is accepted by this Filter.e - The parent Iterator.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.IteratorhasNext in class NiceIteratorpublic void close()
NiceIterator
close in interface ClosableIteratorclose in class NiceIteratorpublic void remove()
Iterator;
hasNext() may not be called between calls to
next() and remove().
remove in interface java.util.Iteratorremove in class NiceIteratorpublic java.lang.Object next()
next in interface java.util.Iteratornext in class NiceIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||