jodd.util.collection
Class EnumerationIterator<E>

java.lang.Object
  extended by jodd.util.collection.EnumerationIterator<E>
All Implemented Interfaces:
java.util.Iterator<E>

public class EnumerationIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>

Iterator adapter for enumeration.


Constructor Summary
EnumerationIterator(java.util.Enumeration<E> enumeration)
           
 
Method Summary
 boolean hasNext()
           
 E 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(java.util.Enumeration<E> enumeration)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<E>

next

public E next()
Specified by:
next in interface java.util.Iterator<E>

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Specified by:
remove in interface java.util.Iterator<E>
Throws:
java.lang.UnsupportedOperationException


Copyright © 2003-2012 Jodd Team