All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.valkyriercp.rules.constraint.BinaryConstraint Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package org.valkyriercp.rules.constraint;

/**
 * A function object that tests two arguments and returns a single
 * boolean result.
 * 

* A binary constraint is a function object that tests two arguments against * some conditional expression. For example, a "GreaterThan" constraint will * return true if the first argument is greater than the second. * * @author Keith Donald */ public interface BinaryConstraint extends Constraint { /** * Test the provided arguments against this predicates conditional * expression. * * @param argument1 * the first argument * @param argument2 * the second argument * @return true if the condition was satisfied, false otherwise */ public boolean test(Object argument1, Object argument2); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy