org.jikesrvm.compilers.opt.util
Class EmptyEnumerator

java.lang.Object
  extended by org.jikesrvm.compilers.opt.util.EmptyEnumerator
All Implemented Interfaces:
Enumeration<Object>

public final class EmptyEnumerator
extends Object
implements Enumeration<Object>

Enumeration that doesn't have any elements. Use the EMPTY object to access.


Field Summary
private static EmptyEnumerator EMPTY
           
 
Constructor Summary
private EmptyEnumerator()
           
 
Method Summary
static
<T> Enumeration<T>
emptyEnumeration()
           
 boolean hasMoreElements()
           
 Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

private static final EmptyEnumerator EMPTY
Constructor Detail

EmptyEnumerator

private EmptyEnumerator()
Method Detail

emptyEnumeration

public static <T> Enumeration<T> emptyEnumeration()

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<Object>

nextElement

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