org.apache.commons.collections

Class IteratorEnumeration

Implemented Interfaces:
Enumeration

public class IteratorEnumeration
extends IteratorEnumeration

Adapter to make an Iterator instance appear to be an Enumeration instances
Author:
James Strachan
Since:
1.0

Constructor Summary

IteratorEnumeration()
Constructs a new IteratorEnumeration that will not function until setIterator is invoked.
IteratorEnumeration(Iterator iterator)
Constructs a new IteratorEnumeration that will use the given iterator.

Method Summary

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

getIterator, hasMoreElements, nextElement, setIterator

Constructor Details

IteratorEnumeration

public IteratorEnumeration()

IteratorEnumeration

public IteratorEnumeration(Iterator iterator)
Constructs a new IteratorEnumeration that will use the given iterator.
Parameters:
iterator - the iterator to use

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