Check if this_obj is instance of other.
This uses the native java instanceof operator.
You may want to use this if JavaClass.instanceOf
is overridden, as that method itself does not override
any method defined in the specific java class named 'instanceOf'.
// You can also use the instanceOf method (if not overridden) list.instanceOf(ArrayList); // true list.instanceOf('java.util.ArrayList'); // true list.instanceOf('java.util.List'); // true list.instanceOf('java.util.Collection'); // true list.instanceOf('java.lang.Object'); // true list.instanceOf('java.lang.String'); // false
Check if
this_obj
is instance ofother
. This uses the native javainstanceof
operator. You may want to use this if JavaClass.instanceOf is overridden, as that method itself does not override any method defined in the specific java class named 'instanceOf'.Example