Class CompositeEnumeration
- java.lang.Object
-
- com.sun.enterprise.module.common_impl.CompositeEnumeration
-
- All Implemented Interfaces:
java.util.Enumeration<java.net.URL>
public class CompositeEnumeration extends java.lang.Object implements java.util.Enumeration<java.net.URL>
We need a compound enumeration so that we can aggregate the results from various delegates.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Enumeration<java.net.URL>[]
enumerators
(package private) int
index
-
Constructor Summary
Constructors Constructor Description CompositeEnumeration(java.util.List<java.util.Enumeration<java.net.URL>> enumerators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.Enumeration<java.net.URL>
getCurrent()
boolean
hasMoreElements()
java.net.URL
nextElement()
-
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interfacejava.util.Enumeration<java.net.URL>
-
nextElement
public java.net.URL nextElement()
- Specified by:
nextElement
in interfacejava.util.Enumeration<java.net.URL>
-
getCurrent
private java.util.Enumeration<java.net.URL> getCurrent()
-
-