org.gjt.rec.util
Class EmptyEnumeration

java.lang.Object
  |
  +--org.gjt.rec.util.EmptyEnumeration
All Implemented Interfaces:
Enumeration

public final class EmptyEnumeration
extends Object
implements Enumeration

An enumeration with no elements. This class is a Singleton.

Author:
Neil Stockbridge

Field Summary
static String REVISION
           
 
Method Summary
 boolean hasMoreElements()
           
 Object nextElement()
           
static EmptyEnumeration onlyInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Method Detail

onlyInstance

public static EmptyEnumeration onlyInstance()
Returns:
The only instance of this class allowed in the VM.

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Specified by:
nextElement in interface Enumeration