ESC/Java2
© 2003,2004,2005 David Cok and Joseph Kiniry
© 2005 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

javafe.filespace
Class EmptyEnum

java.lang.Object
  extended byjavafe.filespace.EmptyEnum
All Implemented Interfaces:
java.util.Enumeration

class EmptyEnum
extends java.lang.Object
implements java.util.Enumeration

This class simply implements an enumeration with no elements.


Constructor Summary
(package private) EmptyEnum()
           
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
          Always throws a NoSuchElementException since there are no elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyEnum

EmptyEnum()
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true iff any more elements exist in this enumeration.

nextElement

public java.lang.Object nextElement()
Always throws a NoSuchElementException since there are no elements.

Specified by:
nextElement in interface java.util.Enumeration

ESC/Java2
© 2003,2004,2005 David Cok and Joseph Kiniry
© 2005 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

The ESC/Java2 Project Homepage