com.planet_ink.coffee_mud.core.collections
Class ConvertingEnumeration<K,L>

java.lang.Object
  extended by com.planet_ink.coffee_mud.core.collections.ConvertingEnumeration<K,L>
All Implemented Interfaces:
java.util.Enumeration<L>

public class ConvertingEnumeration<K,L>
extends java.lang.Object
implements java.util.Enumeration<L>


Constructor Summary
ConvertingEnumeration(java.util.Enumeration<K> eset, Converter<K,L> conv)
           
ConvertingEnumeration(java.util.Iterator<K> eset, Converter<K,L> conv)
           
 
Method Summary
 boolean hasMoreElements()
           
 L nextElement()
           
 void setConverter(Converter<K,L> conv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertingEnumeration

public ConvertingEnumeration(java.util.Enumeration<K> eset,
                             Converter<K,L> conv)

ConvertingEnumeration

public ConvertingEnumeration(java.util.Iterator<K> eset,
                             Converter<K,L> conv)
Method Detail

setConverter

public void setConverter(Converter<K,L> conv)

hasMoreElements

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

nextElement

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