ewe.util
Class ComparerObjectFinder
java.lang.Object
ewe.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.
|
Method Summary |
boolean |
lookingFor(Object data)
This will return true if the Comparer's compare() method returns 0. |
ComparerObjectFinder
public ComparerObjectFinder(Comparer comparer,
Object searchData)
lookingFor
public boolean lookingFor(Object data)
- This will return true if the Comparer's compare() method returns 0.
- Specified by:
lookingFor in interface ObjectFinder