MCPcopy Create free account
hub / github.com/SquirrelJME/SquirrelJME / isArray

Method isArray

runt/apis/cldc-compact/java/lang/Class.java:250–255  ·  view source on GitHub ↗

Returns true if this class represents an array type. @return true if this class represents an array type. @since 2016/06/16

()

Source from the content-addressed store, hash-verified

248 * @since 2016/06/16
249 */
250 public boolean isArray()
251 {
252 // Guess what! Every array starts with with brackets so this is quite
253 // easily something which can be determined from the classname
254 return this._data.binaryName().startsWith("[");
255 }
256
257 /**
258 * Checks if the given class can be assigned to this one, the check is

Callers 1

cloneMethod · 0.45

Calls 2

startsWithMethod · 0.65
binaryNameMethod · 0.45

Tested by

no test coverage detected