All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.objectspace.jgl.InstanceOf

java.lang.Object
   |
   +----COM.objectspace.jgl.InstanceOf

public final class InstanceOf
extends Object
implements UnaryPredicate
InstanceOf is a unary predicate that performs the same function as the instanceof keyword.

Version:
2.0.2
Author:
ObjectSpace, Inc.

Constructor Index

 o InstanceOf(Class)
Construct myself to perform the equivalent of the instanceof operator for the given class.

Method Index

 o execute(Object)
Test operand for belonging to a specific class.

Constructors

 o InstanceOf
 public InstanceOf(Class c)
Construct myself to perform the equivalent of the instanceof operator for the given class.

Methods

 o 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