Class CloseableIterationIterator<E>
java.lang.Object
org.eclipse.rdf4j.common.iterator.CloseableIterationIterator<E>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<E>
Wraps a
CloseableIteration
as an Iterator
.- Author:
- Mark
-
Constructor Summary
ConstructorDescriptionCloseableIterationIterator
(CloseableIteration<? extends E, ? extends RuntimeException> iteration) CloseableIterationIterator
(Iteration<? extends E, ? extends RuntimeException> iteration) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CloseableIterationIterator
@Deprecated(since="4.1.0", forRemoval=true) public CloseableIterationIterator(Iteration<? extends E, ? extends RuntimeException> iteration) Deprecated, for removal: This API element is subject to removal in a future version. -
CloseableIterationIterator
public CloseableIterationIterator(CloseableIteration<? extends E, ? extends RuntimeException> iteration)
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-