|
||||||||||
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<To>
com.hp.hpl.jena.util.iterator.Map1Iterator<From,To>
public class Map1Iterator<From,To>
An iterator that consumes an underlying iterator and maps its results before delivering them; supports remove if the underlying iterator does.
Constructor Summary | |
---|---|
Map1Iterator(Map1<From,To> map,
java.util.Iterator<From> base)
Construct a list of the converted. |
Method Summary | |
---|---|
void |
close()
default close: don't need to do anything. |
boolean |
hasNext()
default hasNext: no elements, return false. |
To |
next()
default next: throw an exception. |
void |
remove()
default remove: we have no elements, so we can't remove any. |
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 |
Constructor Detail |
---|
public Map1Iterator(Map1<From,To> map, java.util.Iterator<From> base)
map
- The conversion to apply.base
- the iterator of elements to convertMethod Detail |
---|
public To next()
NiceIterator
next
in interface java.util.Iterator<To>
next
in class NiceIterator<To>
public boolean hasNext()
NiceIterator
hasNext
in interface java.util.Iterator<To>
hasNext
in class NiceIterator<To>
public void remove()
NiceIterator
remove
in interface java.util.Iterator<To>
remove
in class NiceIterator<To>
public void close()
NiceIterator
close
in interface ClosableIterator<To>
close
in class NiceIterator<To>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |