org.jikesrvm.compilers.opt.util
Class EmptyEnumerator
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
private static final EmptyEnumerator EMPTY
EmptyEnumerator
private EmptyEnumerator()
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>