com.mockobjects.constraint
Class Or
java.lang.Objectcom.mockobjects.constraint.Or
- Constraint
public class Or
extends java.lang.Object
Calculates the logical disjunction of two constraints.
Evaluation is shortcut, so that the second constraint is not
called if the first constraint returns true.
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.