nl.knowledgeplaza.util
Class IteratorToEnumerationAdapter<T>

java.lang.Object
  extended by 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 $

Constructor Summary
IteratorToEnumerationAdapter(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(Iterator<T> pIterator)
Method Detail

hasMoreElements

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

nextElement

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


Copyright © 2011 KnowledgePlaza. All Rights Reserved.