|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.intarsys.tools.collection.EmptyIterator
public class EmptyIterator
An Iterator over an empty collection.
| Field Summary | |
|---|---|
static java.util.Iterator |
UNIQUE
|
| Constructor Summary | |
|---|---|
protected |
EmptyIterator()
Create an EmptyIterator. |
| Method Summary | |
|---|---|
boolean |
hasNext()
Return always false as an emtpy iterator has no elements. |
java.lang.Object |
next()
Throw always exception, as an empty enumeration has no elements. |
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Iterator UNIQUE
| Constructor Detail |
|---|
protected EmptyIterator()
| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - Is thrown alwayspublic void remove()
remove in interface java.util.Iterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||