|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.predicates.SameClassPredicate
This predicate tests to see if an object is of the specified class.
Constructor Summary | |
SameClassPredicate(java.lang.Class c)
Saves the predicate class. |
|
SameClassPredicate(java.lang.Class[] classes)
Constructs a new SameClassPredicate for an array of classes. |
Method Summary | |
boolean |
predicate(GameObject obj)
Return true if the passed object is of the same class as the predicate class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SameClassPredicate(java.lang.Class c)
public SameClassPredicate(java.lang.Class[] classes)
classes
- an array of classes for which to return 'true'.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 |