|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.predicates.NotPredicate
This predicate returns the opposite of the passed predicate.
Constructor Summary | |
NotPredicate(Predicate p)
Constructs a new NotPredicate |
Method Summary | |
Predicate |
getPredicate()
Returns the predicate being negated. |
boolean |
predicate(GameObject obj)
Returns the opposite of our stored predicate. |
java.lang.String |
print()
Prints an English-like description of the predicate, e.g. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NotPredicate(Predicate p)
Method Detail |
public Predicate getPredicate()
public boolean predicate(GameObject obj)
predicate
in interface Predicate
obj
- any GameObject
public java.lang.String toString()
public java.lang.String print()
PrintablePredicate
print
in interface PrintablePredicate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |