- All Implemented Interfaces:
Iterator<Triple>,org.apache.jena.atlas.iterator.IteratorCloseable<Triple>,org.apache.jena.atlas.lib.Closeable,ClosableIterator<Triple>,ExtendedIterator<Triple>
- Direct Known Subclasses:
StoreTripleIterator
A WrappedIterator which remembers the last object next'ed in a
protected instance variable, so that subclasses have access to it
during .remove.
After a call to
forEachRemaining(java.util.function.Consumer<? super org.apache.jena.graph.Triple>) current is null. So calling #remove after
#forEachRemaining is not supported.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Consumer<? super Triple> action) forEachRemaining: defer to the base iteratornext()Answer the next object, remembering it incurrent.Methods inherited from class org.apache.jena.util.iterator.WrappedIterator
close, close, create, createIteratorIterator, createNoRemove, forTestingOnly_getBase, hasNext, ofStream, removeMethods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, 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
-
TrackingTripleIterator
-
-
Method Details
-
next
Answer the next object, remembering it incurrent. -
forEachRemaining
Description copied from class:WrappedIteratorforEachRemaining: defer to the base iterator- Specified by:
forEachRemainingin interfaceIterator<Triple>- Overrides:
forEachRemainingin classWrappedIterator<Triple>
-