dsto.dfc.collections
Class IteratorEnumeration

java.lang.Object
  extended by dsto.dfc.collections.IteratorEnumeration
All Implemented Interfaces:
Enumeration

public class IteratorEnumeration
extends Object
implements Enumeration

Adapts an java.util.Iterator to the java.util.Enumeration interface.

Author:
Matthew Phillips
See Also:
EnumerationIterator

Constructor Summary
IteratorEnumeration(Iterator iterator)
           
 
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

IteratorEnumeration

public IteratorEnumeration(Iterator iterator)
Method Detail

hasMoreElements

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

nextElement

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


Copyright © 2008 Commonwealth of Australia