java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.utility.iterator.EmptyIterator
All Implemented Interfaces:
Iterator<Object>

public final class EmptyIterator extends Object implements Iterator<Object>
A null instance of an Iterator.
Since:
2.4
Version:
2.4
  • Method Details

    • instance

      public static <T> Iterator<T> instance()
      Returns the singleton instance this EmptyIterator.
      Returns:
      The singleton instance this EmptyIterator
    • hasNext

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

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

      public void remove()
      Specified by:
      remove in interface Iterator<Object>
    • toString

      public String toString()
      Overrides:
      toString in class Object