net.cscott.jutil
Class IteratorEnumerator<E>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorEnumerator
public IteratorEnumerator(Iterator<E> i)
- Creates a
IteratorEnumerator
.
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration<E>
nextElement
public E nextElement()
- Specified by:
nextElement
in interface Enumeration<E>
Copyright (c) 2006 C. Scott Ananian