public class EmptyIterator
extends java.lang.Object
implements java.util.Iterator
| Modifier and Type | Field and Description |
|---|---|
static java.util.Iterator |
UNIQUE |
| Modifier | Constructor and Description |
|---|---|
protected |
EmptyIterator()
Create an EmptyIterator.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
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