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

Method get

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

264 * @throws RuntimeException If there is no value for the index.
265 */
266 public Object get(int index) {
267 Object object = opt(index);
268 if (object == null) {
269 throw new RuntimeException("JSONArray[" + index + "] not found.");
270 }
271 return object;
272 }
273
274
275 /**

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