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

Method opt

src/main/java/com/mcbans/plugin/org/json/JSONObject.java:758–760  ·  view source on GitHub ↗

Get an optional value associated with a key. @param key A key string. @return An object which is the value, or null if there is no value.

(String key)

Source from the content-addressed store, hash-verified

756 * @return An object which is the value, or null if there is no value.
757 */
758 public Object opt(String key) {
759 return key == null ? null : this.map.get(key);
760 }
761
762
763 /**

Callers 13

parseMethod · 0.95
toStringMethod · 0.95
accumulateMethod · 0.95
appendMethod · 0.95
getMethod · 0.95
incrementMethod · 0.95
isNullMethod · 0.95
optJSONArrayMethod · 0.95
optJSONObjectMethod · 0.95
optStringMethod · 0.95
putOnceMethod · 0.95
toJSONArrayMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected