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.
Wolfram Research (2007), InstanceOf, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/InstanceOf.html.
Text
Wolfram Research (2007), InstanceOf, Wolfram Language function, https://reference.wolfram.com/language/JLink/ref/InstanceOf.html.
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.
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
Wolfram Language. (2007). InstanceOf. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/JLink/ref/InstanceOf.html
BibTeX
@misc{reference.wolfram_2025_instanceof, author="Wolfram Research", title="{InstanceOf}", year="2007", howpublished="\url{https://reference.wolfram.com/language/JLink/ref/InstanceOf.html}", note=[Accessed: 06-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_instanceof, organization={Wolfram Research}, title={InstanceOf}, year={2007}, url={https://reference.wolfram.com/language/JLink/ref/InstanceOf.html}, note=[Accessed: 06-April-2025
]}