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

Method get

core/src/processing/data/JSONObject.java:540–553  ·  view source on GitHub ↗

Get the value object associated with a key. @param key A key string. @return The object associated with the key. @throws RuntimeException if the key is not found.

(String key)

Source from the content-addressed store, hash-verified

538 * @throws RuntimeException if the key is not found.
539 */
540 public Object get(String key) {
541 if (key == null) {
542 throw new RuntimeException("JSONObject.get(null) called");
543 }
544 Object object = this.opt(key);
545 if (object == null) {
546 // Adding for rev 0257 in line with other p5 api
547 return null;
548 }
549 if (object == null) {
550 throw new RuntimeException("JSONObject[" + quote(key) + "] not found");
551 }
552 return object;
553 }
554
555
556 /**

Callers 7

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

Calls 2

optMethod · 0.95
quoteMethod · 0.95

Tested by

no test coverage detected