org.springframework.rules.constraint
Class GreaterThan

java.lang.Object
  extended by org.springframework.core.closure.support.AlgorithmsAccessor
      extended by org.springframework.rules.constraint.ConstraintsAccessor
          extended by org.springframework.rules.constraint.AbstractBinaryConstraint
              extended by org.springframework.rules.constraint.ComparisonBinaryPredicate
                  extended by org.springframework.rules.constraint.GreaterThan
All Implemented Interfaces:
Constraint, BinaryConstraint

public class GreaterThan
extends ComparisonBinaryPredicate
implements BinaryConstraint

Predicate that tests if one comparable object is greater than another.

Author:
Keith Donald

Field Summary
static GreaterThan INSTANCE
           
 
Constructor Summary
GreaterThan()
           
GreaterThan(Comparator comparator)
           
 
Method Summary
static BinaryConstraint instance()
           
static BinaryConstraint instance(Comparator c)
           
static void load(GreaterThan instance)
           
protected  boolean testCompareResult(int result)
          Template method for evaluating the compare result.
 String toString()
           
static Constraint value(Comparable value)
           
static Constraint value(Object value, Comparator comparator)
           
 
Methods inherited from class org.springframework.rules.constraint.ComparisonBinaryPredicate
getComparator, test
 
Methods inherited from class org.springframework.rules.constraint.AbstractBinaryConstraint
test
 
Methods inherited from class org.springframework.rules.constraint.ConstraintsAccessor
all, all, and, any, any, bind, bind, bind, bind, bind, conjunction, disjunction, eq, eq, eq, eq, eq, eqProperty, eqProperty, getConstraints, gt, gt, gt, gt, gt, gt, gt, gte, gte, gte, gte, gte, gte, gte, gteProperty, gteProperty, gtProperty, gtProperty, ifTrue, ifTrueElse, inGroup, inGroup, inGroup, inRange, inRange, inRangeProperties, inRangeProperties, like, like, lt, lt, lt, lt, lt, lt, lt, lte, lte, lte, lte, lte, lte, lte, lteProperty, lteProperty, ltProperty, ltProperty, maxLength, method, minLength, not, not, or, present, present, range, range, range, range, range, range, range, regexp, regexp, required, required, testResultOf, unique, value
 
Methods inherited from class org.springframework.core.closure.support.AlgorithmsAccessor
allTrue, allTrue, anyTrue, anyTrue, findAll, findAll, findFirst, findFirst, forEach, forEach, getAlgorithms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.rules.closure.BinaryConstraint
test
 
Methods inherited from interface org.springframework.core.closure.Constraint
test
 

Field Detail

INSTANCE

public static GreaterThan INSTANCE
Constructor Detail

GreaterThan

public GreaterThan()

GreaterThan

public GreaterThan(Comparator comparator)
Method Detail

instance

public static BinaryConstraint instance()

load

public static void load(GreaterThan instance)

instance

public static BinaryConstraint instance(Comparator c)

value

public static Constraint value(Comparable value)

value

public static Constraint value(Object value,
                               Comparator comparator)

testCompareResult

protected boolean testCompareResult(int result)
Description copied from class: ComparisonBinaryPredicate
Template method for evaluating the compare result.

Specified by:
testCompareResult in class ComparisonBinaryPredicate
Parameters:
result - The compare result
Returns:
true or false

toString

public String toString()
Overrides:
toString in class Object


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