Top Description Fields Constructors Methods
net.sf.ehcache.util

public Class MergedEnumeration<E>

extends Object
implements Enumeration<E>
Class Inheritance
All Implemented Interfaces
java.util.Enumeration
Imports
java.util.ArrayList, .Collections, .Enumeration, .List

An utility class to merge several enumerations into a single one
Author
Anthony Dahanne

Field Summary

Modifier and TypeField and Description
private final Enumeration<E>

Constructor Summary

AccessConstructor and Description
public
MergedEnumeration(Enumeration<E>... enumerations)

Merges all enumerations found as constructor arguments into a single one

Method Summary

Modifier and TypeMethod and Description
public boolean
hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.
public E
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

enumerationback to summary
private final Enumeration<E> enumeration

Constructor Detail

MergedEnumerationback to summary
public MergedEnumeration(Enumeration<E>... enumerations)

Merges all enumerations found as constructor arguments into a single one

Method Detail

hasMoreElementsback to summary
public boolean hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Doc from java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

Returns:boolean

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

Annotations
@Override
nextElementback to summary
public E 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.

Returns:E

the next element of this enumeration.

Annotations
@Override