|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwyvern.lib.predicates.AndNotPredicate
This predicate combines two other predicates with an AND NOT operation. It returns true only when the first subpredicate is true, and the second one is false.
Constructor Summary | |
AndNotPredicate(Predicate p1,
Predicate p2)
Constructs a new AndNotPredicate with 2 sub-predicates p1 and p2. |
Method Summary | |
boolean |
predicate(GameObject obj)
Returns true if first sub-predicate returns true, and second one returns false. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AndNotPredicate(Predicate p1, Predicate p2)
Method Detail |
public boolean predicate(GameObject obj)
predicate
in interface Predicate
obj
- the object to predicate upon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |