de.intarsys.tools.collection
Class EmptyEnumeration
java.lang.Object
de.intarsys.tools.collection.EmptyEnumeration
- All Implemented Interfaces:
- Enumeration
public class EmptyEnumeration
- extends Object
- implements Enumeration
An Enumeration without elements.
Method Summary |
boolean |
hasMoreElements()
Return always false as an emtpy enumeration has no elements. |
Object |
nextElement()
Throw always exception, as an empty enumeration has no elements. |
UNIQUE
public static final Enumeration UNIQUE
hasMoreElements
public boolean hasMoreElements()
- Return always false as an emtpy enumeration has no elements.
- Specified by:
hasMoreElements
in interface Enumeration
- Returns:
- Return always false as an emtpy enumeration has no elements.
nextElement
public Object nextElement()
- Throw always exception, as an empty enumeration has no elements.
- Specified by:
nextElement
in interface Enumeration
- Returns:
- never
- Throws:
NoSuchElementException
- Is thrown always
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.