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

Method optDouble

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

Get the optional double value associated with an index. NaN 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

425 * @return The value.
426 */
427 public double optDouble(int index) {
428 return optDouble(index, Double.NaN);
429 }
430
431
432 /**

Callers

nothing calls this directly

Calls 1

getDoubleMethod · 0.95

Tested by

no test coverage detected