MCPcopy Index your code
hub / github.com/benfry/processing4 / opt

Method opt

core/src/processing/data/JSONArray.java:258–263  ·  view source on GitHub ↗

Get the optional object value associated with an index. @param index must be between 0 and length() - 1 @return An object value, or null if there is no object at that index.

(int index)

Source from the content-addressed store, hash-verified

256 * object at that index.
257 */
258 private Object opt(int index) {
259 if (index < 0 || index >= this.size()) {
260 return null;
261 }
262 return myArrayList.get(index);
263 }
264
265
266 /**

Callers 4

getMethod · 0.95
getStringMethod · 0.95
isNullMethod · 0.95
removeMethod · 0.95

Calls 2

sizeMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected