Home | History | Annotate | Download | only in util

Lines Matching refs:enumeration

28 import java.util.Enumeration;
34 * Implements an Enumeration that combines elements from a Set and
35 * an Enumeration. Used by ListResourceBundle and PropertyResourceBundle.
37 public class ResourceBundleEnumeration implements Enumeration<String> {
41 Enumeration<String> enumeration; // may remain null
44 * Constructs a resource bundle enumeration.
45 * @param set an set providing some elements of the enumeration
46 * @param enumeration an enumeration providing more elements of the enumeration.
47 * enumeration may be null.
49 public ResourceBundleEnumeration(Set<String> set, Enumeration<String> enumeration) {
52 this.enumeration = enumeration;
61 } else if (enumeration != null) {
62 while (next == null && enumeration.hasMoreElements()) {
63 next = enumeration.nextElement();