Class EmptyCloseableIterator<T>

java.lang.Object
com.mysema.commons.lang.EmptyCloseableIterator<T>
All Implemented Interfaces:
CloseableIterator<T>, Closeable, AutoCloseable, Iterator<T>

public class EmptyCloseableIterator<T> extends Object implements CloseableIterator<T>
Empty implementation of the CloseableIterator interface
  • Constructor Details

    • EmptyCloseableIterator

      public EmptyCloseableIterator()
  • Method Details

    • hasNext

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

      public T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>
    • close

      public void close()
      Description copied from interface: CloseableIterator
      Closes this iterator and releases any system resources associated with it. If the iterator is already closed then invoking this method has no effect.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface CloseableIterator<T>