org.apache.commons.ognl
Class EnumerationIterator<E>

java.lang.Object
  extended by org.apache.commons.ognl.EnumerationIterator<E>
All Implemented Interfaces:
Iterator<E>

public class EnumerationIterator<E>
extends Object
implements Iterator<E>

Object that implements Iterator from an Enumeration

Author:
Luke Blanshard (blanshlu@netscape.net), Drew Davidson (drew@ognl.org)

Constructor Summary
EnumerationIterator(Enumeration<E> e)
           
 
Method Summary
 boolean hasNext()
           
static
<T> Iterator<T>
newIterator(Enumeration<T> e)
           
 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(Enumeration<E> e)
Method Detail

newIterator

public static <T> Iterator<T> newIterator(Enumeration<T> e)

hasNext

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

next

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

remove

public void remove()
Specified by:
remove in interface Iterator<E>


Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.