de.intarsys.tools.collection
Class IteratorEnumeration<T>
java.lang.Object
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.
IteratorEnumeration
public IteratorEnumeration(Iterator<T> i)
- IteratorEnumeration constructor.
- Parameters:
i
- The Iterator to be enumerated
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface Enumeration<T>
nextElement
public T nextElement()
- Specified by:
nextElement
in interface Enumeration<T>
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.