public class EmptyEnumeration
extends java.lang.Object
implements java.util.Enumeration
| Modifier and Type | Field and Description |
|---|---|
static java.util.Enumeration |
UNIQUE |
| Modifier | Constructor and Description |
|---|---|
protected |
EmptyEnumeration()
Create an emtpy enumeration
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasMoreElements()
Return always false as an emtpy enumeration has no elements.
|
java.lang.Object |
nextElement()
Throw always exception, as an empty enumeration has no elements.
|
public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumerationpublic java.lang.Object nextElement()
nextElement in interface java.util.Enumerationjava.util.NoSuchElementException - Is thrown always