intarsys runtime library

de.intarsys.tools.collection
Class IteratorEnumeration<T>

java.lang.Object
  extended by de.intarsys.tools.collection.IteratorEnumeration<T>
All Implemented Interfaces:
Enumeration<T>

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

Wraps an iterator into an enumeration API.


Constructor Summary
IteratorEnumeration(Iterator<T> i)
          IteratorEnumeration constructor.
 
Method Summary
 boolean hasMoreElements()
           
 T nextElement()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorEnumeration

public IteratorEnumeration(Iterator<T> i)
IteratorEnumeration constructor.

Parameters:
i - The Iterator to be enumerated
Method Detail

hasMoreElements

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

nextElement

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

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.