org.objectweb.jonathan.libs.helpers
Class EmptyEnumeration

java.lang.Object
  extended byorg.objectweb.jonathan.libs.helpers.EmptyEnumeration
All Implemented Interfaces:
java.util.Enumeration

public final class EmptyEnumeration
extends java.lang.Object
implements java.util.Enumeration

Helper class implementing an empty enumeration.


Constructor Summary
EmptyEnumeration()
           
 
Method Summary
 boolean hasMoreElements()
          Returns false: an empty enumeration has no more elements.
 java.lang.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 java.util.Enumeration
Returns:
false.

nextElement

public java.lang.Object nextElement()
Returns null: there is no next element.

Specified by:
nextElement in interface java.util.Enumeration
Returns:
null.