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

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

public class FilteredListIterator<K>
extends java.lang.Object
implements java.util.ListIterator<K>


Constructor Summary
FilteredListIterator(java.util.ListIterator<K> eset, Filterer<K> fil)
           
 
Method Summary
 void add(K e)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 K next()
           
 int nextIndex()
           
 K previous()
           
 int previousIndex()
           
 void remove()
           
 void set(K e)
           
 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

FilteredListIterator

public FilteredListIterator(java.util.ListIterator<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>
Specified by:
hasNext in interface java.util.ListIterator<K>

next

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

remove

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

add

public void add(K e)
Specified by:
add in interface java.util.ListIterator<K>

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator<K>

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator<K>

previous

public K previous()
Specified by:
previous in interface java.util.ListIterator<K>

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator<K>

set

public void set(K e)
Specified by:
set in interface java.util.ListIterator<K>