InstanceOf
InstanceOf[javaobject,javaclass]
gives True if javaobject is an instance of the class or interface javaclass, or a subclass. Otherwise, it returns False.
InstanceOf[javaobject,"classname"]
gives True if javaobject is an instance of the named class or interface, or a subclass.
Details and Options
- To use InstanceOf, you first need to load J/Link using Needs["JLink`"].
- InstanceOf mimics the behavior of the Java language's instanceof operator.
Text
Wolfram Research (2007), InstanceOf, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/InstanceOf.html.
CMS
Wolfram Language. 2007. "InstanceOf." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/JLink/ref/InstanceOf.html.
APA
Wolfram Language. (2007). InstanceOf. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/InstanceOf.html