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 void
close()
Closes this iteration, freeing any resources that it is holding.void
forEachRemaining(Consumer<? super E> action)
boolean
hasNext()
E
next()
void
remove()
Stream<E>
stream()
Convert the results to a Java 8 Stream.
-
-
-
Method Detail
-
stream
public Stream<E> 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
public void forEachRemaining(Consumer<? super E> action)
- Specified by:
forEachRemaining
in interfaceIterator<E>
-
-