nl.knowledgeplaza.util
Class IteratorToEnumerationAdapter<T>

java.lang.Object
  extended by nl.knowledgeplaza.util.IteratorToEnumerationAdapter<T>
All Implemented Interfaces:
java.util.Enumeration<T>

public class IteratorToEnumerationAdapter<T>
extends java.lang.Object
implements java.util.Enumeration<T>

Utility method for converting an Iterator to an Enumeration class.

Version:
$Revision: 1.3 $
Author:
$Author: toeukpap $

Constructor Summary
IteratorToEnumerationAdapter(java.util.Iterator<T> pIterator)
           
 
Method Summary
 boolean hasMoreElements()
           
 T nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorToEnumerationAdapter

public IteratorToEnumerationAdapter(java.util.Iterator<T> pIterator)
Method Detail

hasMoreElements

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

nextElement

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


Copyright © 2010. All Rights Reserved.