Modifier and Type | Method and Description |
---|---|
static <T> Iterator<T> |
emptyIterator() |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
T |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public static final Iterator INSTANCE
public static <T> Iterator<T> emptyIterator()
public boolean hasNext()
public T next()
next
in interface Iterator<T>
NoSuchElementException
- iteration has no more elements.public void remove()
remove
in interface Iterator<T>
UnsupportedOperationException
- if the remove operation is not supported by this Iterator.IllegalStateException
- if the next method has not yet been called, or the remove
method has already been called after the last call to the next
method.Copyright © 2017 Hitachi Vantara. All rights reserved.