org.datamanager.constraint
Class AndEventConstraint
java.lang.Object
|
+--org.datamanager.kernel.AbstractEventConstraint
|
+--org.datamanager.constraint.AndEventConstraint
- All Implemented Interfaces:
- Constraint, EntityValue, EventConstraint, Serializable
- public class AndEventConstraint
- extends AbstractEventConstraint
AndEventConstraint matches all events that match both
of the EventConstraints given to it in its constructor.
- Author:
- Matthew Farrellee
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndEventConstraint
public AndEventConstraint(EventConstraint p,
EventConstraint q)
- Create a new AndEventConstraint to work on Events
- Parameters:
p
- An EventConstraint.q
- An EventConstraint.
describes
protected boolean describes(DataManagerEvent defendant)
throws DataManagerException
- Check to see if the given Event is valid or not.
- Specified by:
describes
in class AbstractEventConstraint
- Parameters:
defendant
- An event to check.
- Returns:
- Whether the event was valid or not.
DataManagerException
See the Helium Website