net.sf.morph.util
Class IteratorEnumeration

java.lang.Object
  extended by net.sf.morph.util.IteratorEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class IteratorEnumeration
extends java.lang.Object
implements java.util.Enumeration

Exposes an iterator as an Enumeration.

Since:
Jan 8, 2005
Author:
Matt Sgarlata

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

Constructor Detail

IteratorEnumeration

public IteratorEnumeration(java.util.Iterator iterator)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration


Copyright © 2004-2008.