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.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- Is thrown always