E - The type of the iterated elements (if there were any).public final class EmptyIterator<E> extends AbstractBaseIterator<E>
Note, there is an empty iterator at Collections.emptyIterator(), but it's not available on older Android versions.
| Constructor and Description |
|---|
EmptyIterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
static <T> EmptyIterator<T> |
instance() |
E |
next() |
equals, hashCode, removepublic static <T> EmptyIterator<T> instance()
public boolean hasNext()
public E next()