public class

ResourceBundleEnumeration

extends Object
implements Enumeration<E>
java.lang.Object
   ↳ sun.util.ResourceBundleEnumeration

Class Overview

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

Summary

Public Constructors
ResourceBundleEnumeration(Set<String> set, Enumeration<String> enumeration)
Constructs a resource bundle enumeration.
Public Methods
boolean hasMoreElements()
Tests if this enumeration contains more elements.
String nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Enumeration

Public Constructors

public ResourceBundleEnumeration (Set<String> set, Enumeration<String> 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.

Public Methods

public boolean hasMoreElements ()

Tests if this enumeration contains more elements.

Returns
  • true if and only if this enumeration object contains at least one more element to provide; false otherwise.

public String nextElement ()

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Returns
  • the next element of this enumeration.