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
-
Method Summary
-
Constructor Details
-
EmptyIteration
public EmptyIteration()
-
-
Method Details
-
hasNext
-
next
-
remove
-
stream
Description copied from interface:CloseableIteration
Convert the results to a Java 8 Stream.- Specified by:
stream
in interfaceCloseableIteration<E>
- Returns:
- stream
-
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>
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceIterator<E>
-