org.datamanager.constraint
Class EntityEqualsConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEntityConstraint
|
+--org.datamanager.constraint.EntityEqualsConstraint
- All Implemented Interfaces:
- Constraint, EntityConstraint, EntityValue, Serializable
- public class EntityEqualsConstraint
- extends AbstractEntityConstraint
Check to see if a given Entity is equal to another.
- Author:
- Benjamin Keil
- See Also:
- Serialized Form
Method Summary |
protected boolean |
describes(Entity defendant)
Check whether the given Entity is the same as
the Entity specified in the constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityEqualsConstraint
public EntityEqualsConstraint(Entity match)
- Create a new EntityEqualsConstraint.
- Parameters:
match
- Entity to match.
describes
protected boolean describes(Entity defendant)
throws DataManagerException
- Check whether the given Entity is the same as
the Entity specified in the constructor.
- Specified by:
describes
in class AbstractEntityConstraint
- Parameters:
defendant
- An Entity to check.
- Returns:
- Whether the two Entities are the same.
DataManagerException
See the Helium Website