Class GridEmptyIterator<T>

java.lang.Object
org.apache.ignite.internal.util.lang.GridIteratorAdapter<T>
org.apache.ignite.internal.util.GridEmptyIterator<T>
All Implemented Interfaces:
Serializable, Iterable<T>, Iterator<T>, GridSerializableIterator<T>, GridIterator<T>

public class GridEmptyIterator<T> extends GridIteratorAdapter<T>
Empty iterator.
See Also:
  • Constructor Details

    • GridEmptyIterator

      public GridEmptyIterator()
  • Method Details

    • hasNextX

      public boolean hasNextX()
      This method is the same as Iterator.hasNext(), but allows for failure with exception. Often iterators are used to iterate through values that have not or have partially been received from remote nodes, and need to account for possible network failures, rather than just returning false out of Iterator.hasNext() method.
      Returns:
      True if iterator contains more elements.
      See Also:
    • nextX

      public T nextX()
      This method is the same as Iterator.next(), but allows for failure with exception. Often iterators are used to iterate through values that have not or have partially been received from remote nodes, and need to account for possible network failures, rather than throwing NoSuchElementException runtime exception.s
      Returns:
      True if iterator contains more elements.
      See Also:
    • removeX

      public void removeX()
      This method is the same as Iterator.remove(), but allows for failure with exception.
    • toString

      public String toString()
      Overrides:
      toString in class Object