Class SingletonIteration<E>

java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<E>
org.eclipse.rdf4j.common.iteration.SingletonIteration<E>
All Implemented Interfaces:
AutoCloseable, Iterator<E>, CloseableIteration<E>

public class SingletonIteration<E> extends AbstractCloseableIteration<E>
An Iteration that contains exactly one element.
  • Constructor Details

    • SingletonIteration

      public SingletonIteration(E value)
      Creates a new EmptyIteration.
  • Method Details