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

Method optLong

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

Get an optional long value associated with a key, or zero if there is no such key or if the value is not a number. If the value is a string, an attempt will be made to evaluate it as a number. @param key A key string. @return An object which is the value.

(String key)

Source from the content-addressed store, hash-verified

895 * @return An object which is the value.
896 */
897 public long optLong(String key) {
898 return optLong(key, 0);
899 }
900
901
902 /**

Callers

nothing calls this directly

Calls 1

getLongMethod · 0.95

Tested by

no test coverage detected