Package org.apache.ignite.internal.util
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>
Empty iterator.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNextX()This method is the same asIterator.hasNext(), but allows for failure with exception.nextX()This method is the same asIterator.next(), but allows for failure with exception.voidremoveX()This method is the same asIterator.remove(), but allows for failure with exception.toString()Methods inherited from class org.apache.ignite.internal.util.lang.GridIteratorAdapter
hasNext, iterator, next, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
GridEmptyIterator
public GridEmptyIterator()
-
-
Method Details
-
hasNextX
public boolean hasNextX()This method is the same asIterator.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 returningfalseout ofIterator.hasNext()method.- Returns:
Trueif iterator contains more elements.- See Also:
-
nextX
This method is the same asIterator.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 throwingNoSuchElementExceptionruntime exception.s- Returns:
Trueif iterator contains more elements.- See Also:
-
removeX
public void removeX()This method is the same asIterator.remove(), but allows for failure with exception. -
toString
-