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

Method getLong

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

Get the long value associated with an index. @param index The index must be between 0 and length() - 1 @return The value. @throws RuntimeException If the key is not found or if the value cannot be converted to a number.

(int index)

Source from the content-addressed store, hash-verified

357 * be converted to a number.
358 */
359 public long getLong(int index) {
360 Object object = this.get(index);
361 try {
362 return object instanceof Number
363 ? ((Number)object).longValue()
364 : Long.parseLong((String)object);
365 } catch (Exception e) {
366 throw new RuntimeException("JSONArray[" + index + "] is not a number.");
367 }
368 }
369
370
371 /**

Callers 1

getLongArrayMethod · 0.95

Calls 1

getMethod · 0.95

Tested by

no test coverage detected