org.japano.util
Class EmptyEnumeration

java.lang.Object
  extended by org.japano.util.EmptyEnumeration
All Implemented Interfaces:
java.util.Enumeration

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

Implements an Iterator which is always empty.

Version:
$Id: EmptyEnumeration.java,v 1.2 2005/09/27 21:30:51 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Field Summary
static EmptyEnumeration instance
          The only EmptyEnumeration instance
 
Method Summary
 boolean hasMoreElements()
          Returns always false.
 java.lang.Object nextElement()
          Throws a NoSuchElementException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

public static final EmptyEnumeration instance
The only EmptyEnumeration instance

Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns always false.

Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
false

nextElement

public java.lang.Object nextElement()
Throws a NoSuchElementException.

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