E
- the type of elements returned by this iteratorpublic final class EmptyResettableAutoCloseableIterator<E> extends Object implements ResettableAutoCloseableIterator<E>
ResettableAutoCloseableIterator
without behaviour.
Useful as placeholder when a non-null
ResettableAutoCloseableIterator
is
required but does not to have to do anything.
emptyIterator()
,
ResettableAutoCloseableIterator
Modifier and Type | Method and Description |
---|---|
void |
close() |
static <T> EmptyResettableAutoCloseableIterator<T> |
emptyIterator() |
boolean |
hasNext() |
E |
next() |
void |
remove() |
void |
reset()
Resets the iterator to the initial state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public static <T> EmptyResettableAutoCloseableIterator<T> emptyIterator()
public void reset()
ResettableIterator
reset
in interface ResettableIterator<E>
public void close()
close
in interface AutoCloseable
close
in interface ResettableAutoCloseableIterator<E>