MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / opt

Method opt

src/main/java/com/volmit/adapt/util/JSONArray.java:409–411  ·  view source on GitHub ↗

Get the optional object value associated with an index. @param index The 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

407 * @return An object value, or null if there is no object at that index.
408 */
409 public Object opt(int index) {
410 return (index < 0 || index >= this.length()) ? null : this.myArrayList.get(index);
411 }
412
413 /**
414 * Get the optional boolean value associated with an index. It returns false

Callers 9

toStringMethod · 0.95
getMethod · 0.95
isNullMethod · 0.95
optEnumMethod · 0.95
optJSONArrayMethod · 0.95
optJSONObjectMethod · 0.95
optStringMethod · 0.95
toJSONObjectMethod · 0.95
toStringMethod · 0.45

Calls 2

lengthMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected