org.apache.commons.collections

Class EnumerationIterator

Implemented Interfaces:
Iterator

public class EnumerationIterator
extends EnumerationIterator

Adapter to make Enumeration instances appear to be Iterator instances.
Authors:
James Strachan
Daniel Rall
Since:
1.0

Constructor Summary

EnumerationIterator()
Constructs a new EnumerationIterator that will not function until setEnumeration(Enumeration) is called.
EnumerationIterator(Enumeration enumeration)
Constructs a new EnumerationIterator that provides an iterator view of the given enumeration.
EnumerationIterator(Enumeration enumeration, Collection collection)
Constructs a new EnumerationIterator that will remove elements from the specified collection.

Method Summary

Methods inherited from class org.apache.commons.collections.iterators.EnumerationIterator

getEnumeration, hasNext, next, remove, setEnumeration

Constructor Details

EnumerationIterator

public EnumerationIterator()

EnumerationIterator

public EnumerationIterator(Enumeration enumeration)
Constructs a new EnumerationIterator that provides an iterator view of the given enumeration.
Parameters:
enumeration - the enumeration to use

EnumerationIterator

public EnumerationIterator(Enumeration enumeration,
                           Collection collection)
Constructs a new EnumerationIterator that will remove elements from the specified collection.
Parameters:
enumeration - the enumeration to use
collection - the collection to remove elements from

Copyright © 2001-2004 Apache Software Foundation. Documenation generated ${TODAY}.