Class EmptyCloseableIterator<E>

  • Type Parameters:
    E - the object class of the objects contained in the iterator
    All Implemented Interfaces:
    CloseableIterator<E>, VitamAutoCloseable, java.lang.AutoCloseable, java.util.Iterator<E>

    public class EmptyCloseableIterator<E>
    extends java.lang.Object
    implements CloseableIterator<E>
    EmptyCloseableIterator implementation
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean hasNext()  
      E next()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • EmptyCloseableIterator

        public EmptyCloseableIterator()
        Empty constructor
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<E>
      • next

        public E next()
        Specified by:
        next in interface java.util.Iterator<E>
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface VitamAutoCloseable