org.abstracthorizon.danube.webflow
Class DanubeExternalContext.EnumerationIteratorAdapter<T>

java.lang.Object
  extended by org.abstracthorizon.danube.webflow.DanubeExternalContext.EnumerationIteratorAdapter<T>
All Implemented Interfaces:
Enumeration<T>
Enclosing class:
DanubeExternalContext

public static class DanubeExternalContext.EnumerationIteratorAdapter<T>
extends Object
implements Enumeration<T>

Enumeration adapter over itereator


Field Summary
protected  Iterator<T> iterator
          Iterator to be adapted
 
Constructor Summary
DanubeExternalContext.EnumerationIteratorAdapter(Iterator<T> iterator)
          Constructor
 
Method Summary
 boolean hasMoreElements()
          Returns Iterator.hasNext()
 T nextElement()
          Returns Iterator.next()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

protected Iterator<T> iterator
Iterator to be adapted

Constructor Detail

DanubeExternalContext.EnumerationIteratorAdapter

public DanubeExternalContext.EnumerationIteratorAdapter(Iterator<T> iterator)
Constructor

Parameters:
iterator - iterator to be adapted
Method Detail

hasMoreElements

public boolean hasMoreElements()
Returns Iterator.hasNext()

Specified by:
hasMoreElements in interface Enumeration<T>
Returns:
Iterator.hasNext()

nextElement

public T nextElement()
Returns Iterator.next()

Specified by:
nextElement in interface Enumeration<T>
Returns:
Iterator.next()


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.