- All Implemented Interfaces:
Iterator<Triple>
,IteratorCloseable<Triple>
,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 TypeMethodDescriptionvoid
forEachRemaining
(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, remove
Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, 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
-
Constructor Details
-
TrackingTripleIterator
-
-
Method Details
-
next
Answer the next object, remembering it incurrent
. -
forEachRemaining
Description copied from class:WrappedIterator
forEachRemaining: defer to the base iterator- Specified by:
forEachRemaining
in interfaceIterator<Triple>
- Overrides:
forEachRemaining
in classWrappedIterator<Triple>
-