- Direct Known Subclasses:
Abstract superclass for Iterations that wrap other Iterations. The abstract class IterationWrapper itself provides default methods that forward method calls to the wrapped Iteration. Subclasses of IterationWrapper should override some of these methods and may also provide additional methods and fields.
Method SummaryModifier and TypeMethodDescription
hasNext()Checks whether the wrapped Iteration contains more elements, closing this Iteration when this is not the case.
next()Returns the next element from the wrapped Iteration.
remove()Removes the last element that has been returned from the wrapped Iteration.
Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrappedIterDeprecated.This will be changed to private, possibly with an accessor in future. Do not rely on it.The wrapped Iteration.
IterationWrapperCreates a new IterationWrapper that operates on the supplied Iteration.
iter- The wrapped Iteration for this IterationWrapper, must not be null.
hasNextpublic boolean hasNext() throws XChecks whether the wrapped Iteration contains more elements, closing this Iteration when this is not the case.
- true if the wrapped Iteration contains more elements, false otherwise.
nextReturns the next element from the wrapped Iteration.
removepublic void remove() throws XRemoves the last element that has been returned from the wrapped Iteration.
handleCloseprotected void handleClose() throws X