Class EmptyIteration<E>
java.lang.Object
org.eclipse.rdf4j.common.iteration.EmptyIteration<E>
- All Implemented Interfaces:
AutoCloseable,Iterator<E>,CloseableIteration<E>
An iterator that does not contain any elements.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EmptyIteration
public EmptyIteration()
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
stream
Description copied from interface:CloseableIterationConvert the results to a Java 8 Stream.- Specified by:
streamin interfaceCloseableIteration<E>- Returns:
- stream
-
close
public void close()Description copied from interface:CloseableIterationCloses 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIteration<E>
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<E>
-