Package org.apache.ignite.internal.util
Class GridEmptyCloseableIterator<T>
- java.lang.Object
-
- org.apache.ignite.internal.util.lang.GridIteratorAdapter<T>
-
- org.apache.ignite.internal.util.GridEmptyIterator<T>
-
- org.apache.ignite.internal.util.GridEmptyCloseableIterator<T>
-
- All Implemented Interfaces:
Serializable,AutoCloseable,Iterable<T>,Iterator<T>,GridSerializableIterator<T>,GridCloseableIterator<T>,GridIterator<T>,IgniteSpiCloseableIterator<T>
public class GridEmptyCloseableIterator<T> extends GridEmptyIterator<T> implements GridCloseableIterator<T>
Empty closeable iterator.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridEmptyCloseableIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the iterator and frees all the resources held by the iterator.booleanisClosed()Checks if iterator has been closed.-
Methods inherited from class org.apache.ignite.internal.util.GridEmptyIterator
hasNextX, nextX, removeX, toString
-
Methods inherited from class org.apache.ignite.internal.util.lang.GridIteratorAdapter
hasNext, iterator, next, remove
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.util.lang.GridIterator
hasNextX, nextX, removeX
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
close
public void close() throws IgniteCheckedExceptionCloses the iterator and frees all the resources held by the iterator. Iterator can not be used any more after calling this method.The method is invoked automatically on objects managed by the
try-with-resourcesstatement.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceGridCloseableIterator<T>- Specified by:
closein interfaceIgniteSpiCloseableIterator<T>- Throws:
IgniteCheckedException- In case of error.
-
isClosed
public boolean isClosed()
Checks if iterator has been closed.- Specified by:
isClosedin interfaceGridCloseableIterator<T>- Returns:
Trueif iterator has been closed.
-
-