dsto.dfc.collections
Class EnumerationIterator

java.lang.Object
  extended by dsto.dfc.collections.EnumerationIterator
All Implemented Interfaces:
Iterator

public final class EnumerationIterator
extends Object
implements Iterator

Wraps a legacy Enumeration in an Iterator.

Version:
$Revision$
See Also:
IteratorEnumeration

Constructor Summary
EnumerationIterator(Enumeration enumeration)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumerationIterator

public EnumerationIterator(Enumeration enumeration)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
            throws UnsupportedOperationException
Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException


Copyright © 2008 Commonwealth of Australia