nl.knowledgeplaza.util
Class IteratorToEnumerationAdapter<T>
java.lang.Object
nl.knowledgeplaza.util.IteratorToEnumerationAdapter<T>
- All Implemented Interfaces:
- Enumeration<T>
public class IteratorToEnumerationAdapter<T>
- extends Object
- implements Enumeration<T>
Utility method for converting an Iterator to an Enumeration class.
- Version:
- $Revision: 1.3 $
- Author:
- $Author: toeukpap $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorToEnumerationAdapter
public IteratorToEnumerationAdapter(Iterator<T> pIterator)
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements in interface Enumeration<T>
nextElement
public T nextElement()
- Specified by:
nextElement in interface Enumeration<T>
Copyright © 2012 KnowledgePlaza. All Rights Reserved.