Module openj9.dtfj

Class NullIterator

java.lang.Object
com.ibm.j9ddr.corereaders.tdump.zebedee.util.NullIterator
All Implemented Interfaces:
Iterator

public class NullIterator extends Object implements Iterator
This class provides an empty iterator with no elements.
  • Constructor Details

    • NullIterator

      public NullIterator()
      Create a new NullIterator.
  • Method Details

    • instance

      public static NullIterator instance()
      Returns a global instance of the NullIterator.
    • hasNext

      public boolean hasNext()
      Description copied from interface: java.util.Iterator
      Returns true if the iteration has more elements. (In other words, returns true if Iterator.next() would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator
      Returns:
      true if the iteration has more elements
    • next

      public Object next()
      Description copied from interface: java.util.Iterator
      Returns the next element in the iteration.
      Specified by:
      next in interface Iterator
      Returns:
      the next element in the iteration