java.lang.Object
org.apache.jena.util.iterator.NiceIterator<To>
org.apache.jena.util.iterator.Map1Iterator<From,To>
- All Implemented Interfaces:
Iterator<To>,org.apache.jena.atlas.iterator.IteratorCloseable<To>,org.apache.jena.atlas.lib.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
Modifier and TypeMethodDescriptionvoidclose()default close: don't need to do anything.voidforEachRemaining(Consumer<? super To> action) booleanhasNext()default hasNext: no elements, return false.next()default next: throw an exception.voidremove()default remove: we have no elements, so we can't remove any.Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, close, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSetMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
forEach, nextOptional
-
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:NiceIteratordefault next: throw an exception. -
hasNext
public boolean hasNext()Description copied from class:NiceIteratordefault hasNext: no elements, return false. -
forEachRemaining
-
remove
public void remove()Description copied from class:NiceIteratordefault remove: we have no elements, so we can't remove any. -
close
public void close()Description copied from class:NiceIteratordefault close: don't need to do anything.- Specified by:
closein interfaceClosableIterator<From>- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable- Overrides:
closein classNiceIterator<To>
-