org.apache.commons.ognl
Class IteratorEnumeration<T>

java.lang.Object
  extended by org.apache.commons.ognl.IteratorEnumeration<T>
All Implemented Interfaces:
Enumeration<T>

public class IteratorEnumeration<T>
extends Object
implements Enumeration<T>

Maps an Iterator to an Enumeration

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

Method Summary
 boolean hasMoreElements()
          
static
<E> Enumeration<E>
newEnumeration(Iterator<E> iterator)
           
 T nextElement()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newEnumeration

public static <E> Enumeration<E> newEnumeration(Iterator<E> iterator)

hasMoreElements

public boolean hasMoreElements()

Specified by:
hasMoreElements in interface Enumeration<T>

nextElement

public T nextElement()

Specified by:
nextElement in interface Enumeration<T>


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