|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.predicates.InstanceOfPredicate
This predicate returns true if the object is an instance of the specified class or interface.
Constructor Summary | |
InstanceOfPredicate(java.lang.Class clazz)
Constructs a new InstanceOfPredicate. |
Method Summary | |
boolean |
predicate(GameObject obj)
Implements Predicate.predicate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InstanceOfPredicate(java.lang.Class clazz)
clazz
- the class or interface to check against.Method Detail |
public boolean predicate(GameObject obj)
predicate
in interface Predicate
obj
- any GameObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |