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

Method optInt

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

Get an optional int 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

834 * @return An object which is the value.
835 */
836 public int optInt(String key) {
837 return optInt(key, 0);
838 }
839
840
841 /**

Callers

nothing calls this directly

Calls 1

getIntMethod · 0.95

Tested by

no test coverage detected