MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / opt

Method opt

src/main/java/com/volmit/adapt/util/JSONObject.java:1033–1035  ·  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

1031 * @return An object which is the value, or null if there is no value.
1032 */
1033 public Object opt(String key) {
1034 return key == null ? null : this.map.get(key);
1035 }
1036
1037 /**
1038 * Get the enum value associated with a key.

Callers 14

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

Calls 1

getMethod · 0.65

Tested by

no test coverage detected