org.objectweb.jonathan.libs.helpers
Class EmptyEnumeration

java.lang.Object
  |
  +--org.objectweb.jonathan.libs.helpers.EmptyEnumeration
All Implemented Interfaces:
Enumeration

public final class EmptyEnumeration
extends Object
implements Enumeration

Helper class implementing an empty enumeration.


Constructor Summary
EmptyEnumeration()
           
 
Method Summary
 boolean hasMoreElements()
          Returns false: an empty enumeration has no more elements.
 Object nextElement()
          Returns null: there is no next element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyEnumeration

public EmptyEnumeration()
Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns false: an empty enumeration has no more elements.
Specified by:
hasMoreElements in interface Enumeration
Returns:
false.

nextElement

public Object nextElement()
Returns null: there is no next element.
Specified by:
nextElement in interface Enumeration
Returns:
null.