common
Class FilteredMapIterator
java.lang.Object
common.FilteredIterator
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteredMapIterator
public FilteredMapIterator(java.util.Iterator underlying)
- Creates a new FilteredMapIterator on the given underlying iterator.
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)