MCPcopy Create free account
hub / github.com/Var3D/var3dframe / optLong

Method optLong

core/src/core/java/var3d/net/center/json/JSONArray.java:431–433  ·  view source on GitHub ↗

Returns the value at index if it exists and is a long or can be coerced to a long. Returns 0 otherwise.

(int index)

Source from the content-addressed store, hash-verified

429 * can be coerced to a long. Returns 0 otherwise.
430 */
431 public long optLong(int index) {
432 return optLong(index, 0L);
433 }
434
435 /**
436 * Returns the value at {@code index} if it exists and is a long or

Callers

nothing calls this directly

Calls 2

optMethod · 0.95
toLongMethod · 0.95

Tested by

no test coverage detected