|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.ucsb.ccs.jaqual.Exists
Exists quantifier. Evaluates true if a test succeeds for at least one element in a collection.
Example:
Exists.in(myCollection).suchThat(new Equal(0));
| Constructor Summary | |
Exists(java.util.Collection c)
Create a new Exists quantifier. |
|
Exists(java.lang.Object[] array)
Create a new Exists quantifier for an array. |
|
| Method Summary | |
static Exists |
in(java.util.Collection c)
Create a new Exists quantifier. |
boolean |
suchThat(Assertion a)
Evaluate the quantifier on all objects in the collection. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Exists(java.util.Collection c)
c - the collection of object to which quantifier applies.public Exists(java.lang.Object[] array)
array - the array of objects to which quantifier applies.| Method Detail |
public static Exists in(java.util.Collection c)
c - the collection of object to which quantifier applies.public boolean suchThat(Assertion a)
a - a test to evaluate on each object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||