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

Method opt

src/main/java/com/mcbans/plugin/org/json/JSONArray.java:382–385  ·  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

380 * object at that index.
381 */
382 public Object opt(int index) {
383 return (index < 0 || index >= length()) ?
384 null : this.myArrayList.get(index);
385 }
386
387
388 /**

Callers 10

toStringMethod · 0.95
getMethod · 0.95
isNullMethod · 0.95
optJSONArrayMethod · 0.95
optJSONObjectMethod · 0.95
optStringMethod · 0.95
removeMethod · 0.95
toJSONObjectMethod · 0.95
toStringMethod · 0.45
rowToStringMethod · 0.45

Calls 2

lengthMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected