net.sf.molae.logic.basic
Class EqualsPredicate
java.lang.Object
|
+--net.sf.molae.logic.basic.AdaptablePredicate
|
+--net.sf.molae.logic.basic.AbstractSinglePredicate
|
+--net.sf.molae.logic.basic.SetBasedPredicate
|
+--net.sf.molae.logic.basic.EqualsPredicate
- All Implemented Interfaces:
- GeneralPredicate, Predicate, SinglePredicate
- public class EqualsPredicate
- extends SetBasedPredicate
A predicate based on the equals() method.
- Since:
- 1.1
|
Constructor Summary |
EqualsPredicate(Object base)
Constructs a new EqualsPredicate based on the specified object. |
|
Method Summary |
Object |
getBaseObject()
Returns the object for which the evaluate method
returns true. |
| Methods inherited from class net.sf.molae.logic.basic.SetBasedPredicate |
and, andNot, equals, evaluate, getInstance, hashCode, implies, isEmpty, or, toSet, toString, xor |
EqualsPredicate
public EqualsPredicate(Object base)
- Constructs a new EqualsPredicate based on the specified object.
- Parameters:
base - object for which the evaluate method
returns true.
getBaseObject
public Object getBaseObject()
- Returns the object for which the
evaluate method
returns true.
- Returns:
- the base object of this predicate