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

Method optLong

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

Get the optional long 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

512 * @return The value.
513 */
514 public long optLong(int index) {
515 return optLong(index, 0);
516 }
517
518
519 /**

Callers

nothing calls this directly

Calls 1

getLongMethod · 0.95

Tested by

no test coverage detected