MCPcopy Create free account
hub / github.com/MCBans/MCBans / get

Method get

src/main/java/com/mcbans/plugin/org/json/JSONObject.java:447–457  ·  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 JSONException if the key is not found.

(String key)

Source from the content-addressed store, hash-verified

445 * @throws JSONException if the key is not found.
446 */
447 public Object get(String key) throws JSONException {
448 if (key == null) {
449 throw new JSONException("Null key.");
450 }
451 Object object = opt(key);
452 if (object == null) {
453 throw new JSONException("JSONObject[" + quote(key) +
454 "] not found.");
455 }
456 return object;
457 }
458
459
460 /**

Callers 11

getBooleanMethod · 0.95
getDoubleMethod · 0.95
getIntMethod · 0.95
getJSONArrayMethod · 0.95
getJSONObjectMethod · 0.95
getLongMethod · 0.95
getStringMethod · 0.95
JSONObjectMethod · 0.45
optMethod · 0.45
toStringMethod · 0.45
writeMethod · 0.45

Calls 2

optMethod · 0.95
quoteMethod · 0.95

Tested by

no test coverage detected