JUtil

net.cscott.jutil
Class IteratorEnumerator<E>

java.lang.Object
  extended by net.cscott.jutil.IteratorEnumerator<E>
All Implemented Interfaces:
Enumeration<E>

public class IteratorEnumerator<E>
extends Object
implements Enumeration<E>

An IteratorEnumerator converts an Iterator into an Enumeration.

Version:
$Id: IteratorEnumerator.java,v 1.2 2006-10-30 19:58:06 cananian Exp $
Author:
C. Scott Ananian

Constructor Summary
IteratorEnumerator(Iterator<E> i)
          Creates a IteratorEnumerator.
 
Method Summary
 boolean hasMoreElements()
           
 E 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<E> i)
Creates a IteratorEnumerator.

Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<E>

nextElement

public E nextElement()
Specified by:
nextElement in interface Enumeration<E>

JUtil

Copyright (c) 2006 C. Scott Ananian