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

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

public class ConvertingIterator<K,L>
extends java.lang.Object
implements java.util.Iterator<L>


Constructor Summary
ConvertingIterator(java.util.Iterator<K> eset, Converter<K,L> conv)
           
 
Method Summary
 boolean hasNext()
           
 L next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertingIterator

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

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<L>

next

public L next()
Specified by:
next in interface java.util.Iterator<L>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<L>