|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.ucsb.ccs.jaqual.ForAll
A forall quantifier. Evaluates true if a test succeeds on all objects in a collection.
Example:
ForAll.in(myCollection).ensure(new Equal(0));
ForAll can also be used to apply an Operator to all objects in a collection.
Operator| Constructor Summary | |
ForAll(java.util.Collection c)
Create a new ForAll quantifier. |
|
ForAll(java.lang.Object[] array)
Create a new ForAll quantifier for an array. |
|
| Method Summary | |
boolean |
ensure(Assertion a)
Evaluate the quantifier on all objects in the collection. |
void |
execute(Operator o)
Execute an operator on all objects in the collection. |
static ForAll |
in(java.util.Collection c)
Create a new ForAll quantifier. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ForAll(java.util.Collection c)
c - the collection of objects to which quantifier applies.public ForAll(java.lang.Object[] array)
array - the array of objects to which quantifier applies.| Method Detail |
public static ForAll in(java.util.Collection c)
c - the collection of object to which quantifier applies.public boolean ensure(Assertion a)
a - an assertion to evaluate on each object.
public void execute(Operator o)
o - an Operator to be applied to each object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||