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

Method opt

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

Returns the value at index, or null if the array has no value at index.

(int index)

Source from the content-addressed store, hash-verified

289 * at {@code index}.
290 */
291 public Object opt(int index) {
292 if (index < 0 || index >= values.size()) {
293 return null;
294 }
295 return values.get(index);
296 }
297
298 /**
299 * Removes and returns the value at {@code index}, or null if the array has no value

Callers 9

isNullMethod · 0.95
optBooleanMethod · 0.95
optDoubleMethod · 0.95
optIntMethod · 0.95
optLongMethod · 0.95
optStringMethod · 0.95
optJSONArrayMethod · 0.95
optJSONObjectMethod · 0.95
toJSONObjectMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected