|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.aalto.util.EmptyIterator<T>
public final class EmptyIterator<T>
Simple implementation of "null iterator", iterator that has nothing to iterate over.
| Method Summary | ||
|---|---|---|
static
|
getInstance()
Since the actual type has no effect (as this iterator never returns any value objects), we can just cast away here: bit unclean, but safe. |
|
boolean |
hasNext()
|
|
T |
next()
|
|
void |
remove()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> EmptyIterator<T> getInstance()
public boolean hasNext()
hasNext in interface Iterator<T>public T next()
next in interface Iterator<T>public void remove()
remove in interface Iterator<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||