harpoon.Util
Class IteratorEnumerator

java.lang.Object
  |
  +--harpoon.Util.IteratorEnumerator
All Implemented Interfaces:
Enumeration

public class IteratorEnumerator
extends Object
implements Enumeration

An IteratorEnumerator converts an Iterator into an Enumeration.

Version:
$Id: IteratorEnumerator.java,v 1.2 2002/02/25 21:08:45 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
IteratorEnumerator(Iterator i)
          Creates a IteratorEnumerator.
 
Method Summary
 boolean hasMoreElements()
           
 Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorEnumerator

public IteratorEnumerator(Iterator i)
Creates a IteratorEnumerator.

Method Detail

hasMoreElements

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

nextElement

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