|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.claritysys.util.EmptyIterator
public final class EmptyIterator
EmptyIterator provides a memory-efficient way for methods to return an Iterator which has no elements.
To acquire an instance, invoke iterator.
Iterator| Method Summary | |
|---|---|
boolean |
hasNext()
Return false. |
static java.util.Iterator |
iterator()
Return the instance. |
java.lang.Object |
next()
Throw an exception. |
void |
remove()
Throw an exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.Iterator iterator()
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||