Class EnumerationDecorator<E>

java.lang.Object
com.globalmentor.collections.iterators.AbstractEnumerationDecorator<E>
com.globalmentor.collections.iterators.EnumerationDecorator<E>
Type Parameters:
E - the type of elements returned by this enumeration.
All Implemented Interfaces:
Enumeration<E>, Iterator<E>

public class EnumerationDecorator<E> extends AbstractEnumerationDecorator<E>
An enumeration that wraps an existing enumeration.
Author:
Garret Wilson
API Note:
This enumeration also serves as an adapter, converting an enumeration to an Iterator.
Implementation Specification:
This implementation does not support element removal.
Implementation Note:
Subclasses may override AbstractEnumerationDecorator.hasMoreElements() and/or AbstractEnumerationDecorator.nextElement(), and Iterator compatibility will be maintained.