org.jmock.core.constraint

Class IsGreaterThan

Implemented Interfaces:
Constraint, SelfDescribing

public class IsGreaterThan
extends Object
implements Constraint

Is the value greater than another Comparable value?

Constructor Summary

IsGreaterThan(Comparable lowerLimit)

Method Summary

StringBuffer
describeTo(StringBuffer buffer)
boolean
eval(Object arg)
Evaluates the constraint for argument o.

Constructor Details

IsGreaterThan

public IsGreaterThan(Comparable lowerLimit)

Method Details

describeTo

public StringBuffer describeTo(StringBuffer buffer)
Specified by:
describeTo in interface SelfDescribing

eval

public boolean eval(Object arg)
Evaluates the constraint for argument o.
Specified by:
eval in interface Constraint
Parameters:
Returns:
true if o meets the constraint, false if it does not.