Build 1.0_r1(from source)

java.lang
Class EmptyEnumeration

java.lang.Object
  extended by java.lang.EmptyEnumeration
All Implemented Interfaces:
Serializable, Enumeration<URL>

final class EmptyEnumeration
extends Object
implements Enumeration<URL>, Serializable

Empty enumeration class. Call getInstance() to get the singleton. This is not part of the Java spec, so must be package-scope only.


Method Summary
static EmptyEnumeration getInstance()
          Return instance.
 boolean hasMoreElements()
          Enumeration implementation.
 URL nextElement()
          Returns the next element in this Enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EmptyEnumeration getInstance()
Return instance.


hasMoreElements

public boolean hasMoreElements()
Enumeration implementation.

Specified by:
hasMoreElements in interface Enumeration<URL>
Returns:
true if there are more elements, false otherwise
See Also:
Enumeration.nextElement()

nextElement

public URL nextElement()
Description copied from interface: Enumeration
Returns the next element in this Enumeration.

Specified by:
nextElement in interface Enumeration<URL>
Returns:
the next element in this Enumeration
See Also:
Enumeration.hasMoreElements()

Build 1.0_r1(from source)

Please submit a feedback, bug or feature