|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.util.Iterators.Empty<E>
public static class Iterators.Empty<E>
An Iterator.Empty is an iterator with no
objects. The method hasNext() always returns
false, while the methods next()
and remove() always throw exceptions.
| Constructor Summary | |
|---|---|
Iterators.Empty()
|
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Always returns false. |
E |
next()
Calling this method throws a no-such-element exception. |
void |
remove()
Calling this method throws an illegal state exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Iterators.Empty()
| Method Detail |
|---|
public boolean hasNext()
false.
hasNext in interface Iterator<E>false.public E next()
next in interface Iterator<E>NoSuchElementException - Always.public void remove()
remove in interface Iterator<E>IllegalStateException - Always.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||