dsto.dfc.collections
Class IteratorEnumeration
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorEnumeration
public IteratorEnumeration(Iterator iterator)
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