MCPcopy Index your code
hub / github.com/processing/processing / opt

Method opt

core/src/processing/data/JSONArray.java:252–257  ·  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

250 * object at that index.
251 */
252 private Object opt(int index) {
253 if (index < 0 || index >= this.size()) {
254 return null;
255 }
256 return myArrayList.get(index);
257 }
258
259
260 /**

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