common
Class FilteredMapIterator

java.lang.Object
  extended by common.FilteredIterator
      extended by common.FilteredMapIterator
All Implemented Interfaces:
java.util.Iterator

public abstract class FilteredMapIterator
extends FilteredIterator

Abstract class for FilteredIterator objects whose underlying iterator runs over the entry set of a map. For each entry such that isGoodValue(entry.getValue()) returns true, the FilteredMapIterator returns entry.getKey().


Constructor Summary
FilteredMapIterator(java.util.Iterator underlying)
          Creates a new FilteredMapIterator on the given underlying iterator.
 
Method Summary
protected  java.lang.Object filter(int index, java.lang.Object obj)
           
protected abstract  boolean isGoodValue(java.lang.Object val)
           
 
Methods inherited from class common.FilteredIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredMapIterator

public FilteredMapIterator(java.util.Iterator underlying)
Creates a new FilteredMapIterator on the given underlying iterator.

Method Detail

filter

protected java.lang.Object filter(int index,
                                  java.lang.Object obj)
Specified by:
filter in class FilteredIterator

isGoodValue

protected abstract boolean isGoodValue(java.lang.Object val)