com.mockobjects.constraint
Class And
java.lang.Objectcom.mockobjects.constraint.And
- Constraint
public class And
extends java.lang.Object
Calculates the logical conjunction of two constraints.
Evaluation is shortcut, so that the second constraint is not
called if the first constraint returns false.
boolean | eval(Object o)- Evaluates the constraint for argument o.
|
String | toString()
|
eval
public boolean eval(Object o)
Evaluates the constraint for argument o.
- eval in interface Constraint
true if o meets the constraint,
false if it does not.
toString
public String toString()
Copyright © 2002 Mock Objects. All Rights Reserved.