Class IteratorBase<X>

java.lang.Object
org.apache.jena.atlas.iterator.IteratorBase<X>
All Implemented Interfaces:
Iterator<X>, IteratorCloseable<X>, Closeable

public abstract class IteratorBase<X> extends Object implements IteratorCloseable<X>
Iterator base class that adds "closeable" to an iterator. close() is always called, whether explicitly or by end-of-iterator.
  • Method Details

    • hasNext

      public final boolean hasNext()
      Specified by:
      hasNext in interface Iterator<X>
    • next

      public final X next()
      Specified by:
      next in interface Iterator<X>
    • close

      public void close()
      Specified by:
      close in interface Closeable