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

Method put

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

Put a key/boolean pair in the JSONObject. @param key A key string. @param value A boolean which is the value. @return this. @throws JSONException If the key is null.

(String key, boolean value)

Source from the content-addressed store, hash-verified

1000 * @throws JSONException If the key is null.
1001 */
1002 public JSONObject put(String key, boolean value) throws JSONException {
1003 put(key, value ? Boolean.TRUE : Boolean.FALSE);
1004 return this;
1005 }
1006
1007
1008 /**

Callers 12

toJSONObjectMethod · 0.95
parseMethod · 0.95
toJSONObjectMethod · 0.95
toJSONObjectMethod · 0.95
toJSONObjectMethod · 0.95
JSONObjectMethod · 0.95
accumulateMethod · 0.95
appendMethod · 0.95
incrementMethod · 0.95
putOnceMethod · 0.95
putOptMethod · 0.95
populateMapMethod · 0.45

Calls 2

testValidityMethod · 0.95
removeMethod · 0.95

Tested by

no test coverage detected