Top Description Fields Constructors Methods
com.sun.enterprise.module.common_impl

public Class CompositeEnumeration

extends Object
implements Enumeration<URL>
Class Inheritance
All Implemented Interfaces
java.util.Enumeration
Imports
java.net.URL, java.util.Enumeration, .List, .NoSuchElementException

We need a compound enumeration so that we can aggregate the results from various delegates.
Author
[email protected]

Field Summary

Modifier and TypeField and Description
pack-priv Enumeration<URL>[]
pack-priv int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Enumeration<URL>
public boolean
hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

public URL
nextElement()

Implements java.util.Enumeration.nextElement.

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

enumeratorsback to summary
pack-priv Enumeration<URL>[] enumerators
indexback to summary
pack-priv int index

Constructor Detail

CompositeEnumerationback to summary
public CompositeEnumeration(List<Enumeration<URL>> enumerators)

Method Detail

getCurrentback to summary
private Enumeration<URL> getCurrent()
hasMoreElementsback to summary
public boolean hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Doc from java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

nextElementback to summary
public URL nextElement()

Implements java.util.Enumeration.nextElement.

Doc from java.util.Enumeration.nextElement.

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