JSUtil - isJavaObject(Object value)

Checks if the specified object is a Java class.

Table 1. Parameters
Name Type Description
value Object The object to check
Table 2. Returns
Type Description
Boolean True if the specified object is an instance of a Java class.

var tu = new TableUtils("incident");
var classes = tu.getHierarchy(); //Java ArrayList
var tables = ["task, incident"]; //JavaScript Array
 
gs.print("JSUtil.isJavaObject(classes) = " + JSUtil.isJavaObject(classes));
gs.print("JSUtil.isJavaObject(tables) = " + JSUtil.isJavaObject(tables));
Output:
JSUtil.isJavaObject(classes) = true
JSUtil.isJavaObject(tables) = false