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

Fields inherited from class net.sf.molae.logic.basic.SetBasedPredicate
CONTRADICTION, TAUTOLOGY
 
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
 
Methods inherited from class net.sf.molae.logic.basic.AbstractSinglePredicate
copy, negate, not
 
Methods inherited from class net.sf.molae.logic.basic.AdaptablePredicate
getBasePredicate, getProxyFor, setBasePredicate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EqualsPredicate

public EqualsPredicate(Object base)
Constructs a new EqualsPredicate based on the specified object.
Parameters:
base - object for which the evaluate method returns true.
Method Detail

getBaseObject

public Object getBaseObject()
Returns the object for which the evaluate method returns true.
Returns:
the base object of this predicate