public final class EmptyIterator
extends java.lang.Object
implements java.util.Iterator
To acquire an instance, invoke iterator
.
Iterator
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Return false.
|
static java.util.Iterator |
iterator()
Return the instance.
|
java.lang.Object |
next()
Throw an exception.
|
void |
remove()
Throw an exception.
|
public static java.util.Iterator iterator()
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
Copyright ? 2002 Clarity Systems Group, LLC. All Rights Reserved.