All Packages Class Hierarchy This Package Previous Next Index
Class COM.objectspace.jgl.predicates.InstanceOf
java.lang.Object
|
+----COM.objectspace.jgl.predicates.InstanceOf
- public final class InstanceOf
- extends Object
- implements UnaryPredicate
InstanceOf is a unary predicate that performs the same function as the
instanceof keyword.
-
InstanceOf(Class)
- Construct myself to perform the equivalent of the instanceof operator for the given class.
-
execute(Object)
- Test operand for belonging to a specific class.
InstanceOf
public InstanceOf(Class c)
- Construct myself to perform the equivalent of the instanceof operator for the given class.
execute
public boolean execute(Object object)
- Test operand for belonging to a specific class.
- Parameters:
- object - The operand
- Returns:
- true if the specified Object argument is non-null and can be
successfully cast to the type passed in my constructor.
- See Also:
- isInstance
All Packages Class Hierarchy This Package Previous Next Index