java.util
Class ResourceBundleEnumeration

java.lang.Object
  extended byjava.util.ResourceBundleEnumeration
All Implemented Interfaces:
Enumeration

class ResourceBundleEnumeration
extends Object
implements Enumeration

Implements an Enumeration that combines elements from a Set and an Enumeration. Used by ListResourceBundle and PropertyResourceBundle.


Field Summary
(package private)  Enumeration enumeration
           
(package private)  Iterator iterator
           
(package private)  Object next
           
(package private)  Set set
           
 
Constructor Summary
(package private) ResourceBundleEnumeration(Set set, Enumeration enumeration)
          Constructs a resource bundle enumeration.
 
Method Summary
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 Object nextElement()
          Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

set

Set set

iterator

Iterator iterator

enumeration

Enumeration enumeration

next

Object next
Constructor Detail

ResourceBundleEnumeration

ResourceBundleEnumeration(Set set,
                          Enumeration enumeration)
Constructs a resource bundle enumeration.

Parameters:
set - an set providing some elements of the enumeration
enumeration - an enumeration providing more elements of the enumeration. enumeration may be null.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Description copied from interface: Enumeration
Tests if this enumeration contains more elements.

Specified by:
hasMoreElements in interface Enumeration
Returns:
true if and only if this enumeration object contains at least one more element to provide; false otherwise.

nextElement

public Object nextElement()
Description copied from interface: Enumeration
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Specified by:
nextElement in interface Enumeration
Returns:
the next element of this enumeration.