net.officefloor.plugin.servlet.container
Class IteratorEnumeration<E>

java.lang.Object
  extended by net.officefloor.plugin.servlet.container.IteratorEnumeration<E>
All Implemented Interfaces:
Enumeration<E>

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

Enumeration wrapping an Iterator.

Author:
Daniel Sagenschneider

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

Constructor Detail

IteratorEnumeration

public IteratorEnumeration(Iterator<E> iterator)
Initiate.

Parameters:
iterator - Iterator.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface Enumeration<E>

nextElement

public E nextElement()
Specified by:
nextElement in interface Enumeration<E>


Copyright © 2005-2012. All Rights Reserved.