com.planet_ink.coffee_mud.core.collections
Class FilteredIterator<K>

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

public class FilteredIterator<K>
extends java.lang.Object
implements java.util.Iterator<K>


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

Constructor Detail

FilteredIterator

public FilteredIterator(java.util.Iterator<K> eset,
                        Filterer<K> fil)
Method Detail

setFilterer

public void setFilterer(Filterer<K> fil)

hasNext

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

next

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

remove

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