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

Method get

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

Get the object value associated with an index. @param index must be between 0 and length() - 1 @return An object value. @throws RuntimeException If there is no value for the index.

(int index)

Source from the content-addressed store, hash-verified

270 * @throws RuntimeException If there is no value for the index.
271 */
272 public Object get(int index) {
273 Object object = opt(index);
274 if (object == null) {
275 throw new RuntimeException("JSONArray[" + index + "] not found.");
276 }
277 return object;
278 }
279
280
281 /**

Callers 7

getStringMethod · 0.95
getIntMethod · 0.95
getLongMethod · 0.95
getDoubleMethod · 0.95
getBooleanMethod · 0.95
getJSONArrayMethod · 0.95
getJSONObjectMethod · 0.95

Calls 1

optMethod · 0.95

Tested by

no test coverage detected