org.springframework.rules.closure
Interface BinaryConstraint

All Superinterfaces:
Constraint
All Known Implementing Classes:
AbstractBinaryConstraint, ComparisonBinaryPredicate, EqualTo, GreaterThan, GreaterThanEqualTo, LessThan, LessThanEqualTo

public interface BinaryConstraint
extends 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

Method Summary
 boolean test(Object argument1, Object argument2)
          Test the provided arguments against this predicates conditional expression.
 
Methods inherited from interface org.springframework.core.closure.Constraint
test
 

Method Detail

test

boolean test(Object argument1,
             Object argument2)
Test the provided arguments against this predicates conditional expression.

Parameters:
argument1 - the first argument
argument2 - the second argument
Returns:
true if the condition was satisfied, false otherwise


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.