Class CloseablePeakableIteration<E>
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.wrapper.data.CloseablePeakableIteration<E>
-
- All Implemented Interfaces:
AutoCloseable
,Iterator<E>
,CloseableIteration<E>
@InternalUseOnly public class CloseablePeakableIteration<E> extends Object implements CloseableIteration<E>
-
-
Constructor Summary
Constructors Constructor Description CloseablePeakableIteration(CloseableIteration<E> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this iteration, freeing any resources that it is holding.boolean
hasNext()
E
next()
E
peek()
void
remove()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
stream
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
CloseablePeakableIteration
public CloseablePeakableIteration(CloseableIteration<E> parent)
-
-
Method Detail
-
close
public void close()
Description copied from interface:CloseableIteration
Closes this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableIteration<E>
-
peek
public E peek()
-
-