ewe.util
Class ComparerObjectFinder

java.lang.Object
  extended byewe.util.ComparerObjectFinder
All Implemented Interfaces:
ObjectFinder

public class ComparerObjectFinder
extends Object
implements ObjectFinder

This is an ObjectFinder that will use a comparer to check if the lookingFor() method should return true. If the comparer's compare(searchData, lookingForData) method returns 0, then lookingFor() will return true.


Constructor Summary
ComparerObjectFinder(Comparer comparer, Object searchData)
           
 
Method Summary
 boolean lookingFor(Object data)
          This will return true if the Comparer's compare() method returns 0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

ComparerObjectFinder

public ComparerObjectFinder(Comparer comparer,
                            Object searchData)
Method Detail

lookingFor

public boolean lookingFor(Object data)
This will return true if the Comparer's compare() method returns 0.

Specified by:
lookingFor in interface ObjectFinder