org.apache.commons.collections
Class EnumerationIterator

java.lang.Object
  |
  +--org.apache.commons.collections.iterators.EnumerationIterator
        |
        +--org.apache.commons.collections.EnumerationIterator
All Implemented Interfaces:
java.util.Iterator

Deprecated. this class has been moved to the iterators subpackage

public class EnumerationIterator
extends EnumerationIterator

Adapter to make Enumeration instances appear to be Iterator instances.

Since:
1.0
Author:
James Strachan, Daniel Rall

Constructor Summary
EnumerationIterator()
          Deprecated. Constructs a new EnumerationIterator that will not function until EnumerationIterator.setEnumeration(Enumeration) is called.
EnumerationIterator(java.util.Enumeration enumeration)
          Deprecated. Constructs a new EnumerationIterator that provides an iterator view of the given enumeration.
EnumerationIterator(java.util.Enumeration enumeration, java.util.Collection collection)
          Deprecated. Constructs a new EnumerationIterator that will remove elements from the specified collection.
 
Methods inherited from class org.apache.commons.collections.iterators.EnumerationIterator
getEnumeration, hasNext, next, remove, setEnumeration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationIterator

public EnumerationIterator()
Deprecated. 
Constructs a new EnumerationIterator that will not function until EnumerationIterator.setEnumeration(Enumeration) is called.


EnumerationIterator

public EnumerationIterator(java.util.Enumeration enumeration)
Deprecated. 
Constructs a new EnumerationIterator that provides an iterator view of the given enumeration.

Parameters:
enumeration - the enumeration to use

EnumerationIterator

public EnumerationIterator(java.util.Enumeration enumeration,
                           java.util.Collection collection)
Deprecated. 
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 The Apache Software Foundation. All Rights Reserved.