Class EmptyIteration<E>
- java.lang.Object
-
- org.eclipse.rdf4j.common.iteration.EmptyIteration<E>
-
- All Implemented Interfaces:
AutoCloseable,Iterator<E>,CloseableIteration<E>
public final class EmptyIteration<E> extends Object implements CloseableIteration<E>
An iterator that does not contain any elements.
-
-
Constructor Summary
Constructors Constructor Description EmptyIteration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this iteration, freeing any resources that it is holding.voidforEachRemaining(Consumer<? super E> action)booleanhasNext()Enext()voidremove()Stream<E>stream()Convert the results to a Java 8 Stream.
-
-
-
Method Detail
-
stream
public Stream<E> 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
public void forEachRemaining(Consumer<? super E> action)
- Specified by:
forEachRemainingin interfaceIterator<E>
-
-