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

Method optInt

src/main/java/com/mcbans/plugin/org/json/JSONArray.java:458–460  ·  view source on GitHub ↗

Get the optional int value associated with an index. Zero is returned if there is no value for the index, or if the value is not a number and cannot be converted to a number. @param index The index must be between 0 and length() - 1. @return The value.

(int index)

Source from the content-addressed store, hash-verified

456 * @return The value.
457 */
458 public int optInt(int index) {
459 return optInt(index, 0);
460 }
461
462
463 /**

Callers

nothing calls this directly

Calls 1

getIntMethod · 0.95

Tested by

no test coverage detected