org.apache.commons.collections
Class IteratorEnumeration

java.lang.Object
  |
  +--org.apache.commons.collections.IteratorEnumeration
All Implemented Interfaces:
Enumeration

public class IteratorEnumeration
extends Object
implements Enumeration

Adapter to make an Iterator instance appear to be an Enumeration instances

Author:
James Strachan

Constructor Summary
IteratorEnumeration()
           
IteratorEnumeration(Iterator iterator)
           
 
Method Summary
 Iterator getIterator()
           
 boolean hasMoreElements()
           
 Object nextElement()
           
 void setIterator(Iterator iterator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorEnumeration

public IteratorEnumeration()

IteratorEnumeration

public IteratorEnumeration(Iterator iterator)
Method Detail

getIterator

public Iterator getIterator()

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Specified by:
nextElement in interface Enumeration

setIterator

public void setIterator(Iterator iterator)


Copyright © 2001 Apache Software Foundation. Documenation generated April 2 2002.