Package org.apache.jena.util.iterator
Class Map1Iterator<From,To>
java.lang.Object
org.apache.jena.util.iterator.NiceIterator<To>
org.apache.jena.util.iterator.Map1Iterator<From,To>
- All Implemented Interfaces:
Iterator<To>
,IteratorCloseable<To>
,Closeable
,ClosableIterator<To>
,ExtendedIterator<To>
An iterator that consumes an underlying iterator and maps its results before
delivering them; supports remove if the underlying iterator does.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.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 org.apache.jena.util.iterator.ExtendedIterator
forEach, nextOptional
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
Map1Iterator
Construct a list of the converted.- Parameters:
map
- The conversion to apply.base
- the iterator of elements to convert
-
-
Method Details
-
next
Description copied from class:NiceIterator
default next: throw an exception. -
hasNext
public boolean hasNext()Description copied from class:NiceIterator
default hasNext: no elements, return false. -
remove
public void remove()Description copied from class:NiceIterator
default remove: we have no elements, so we can't remove any. -
close
public void close()Description copied from class:NiceIterator
default close: don't need to do anything.- Specified by:
close
in interfaceClosableIterator<From>
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classNiceIterator<To>
-