MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / get

Method get

src/main/java/com/volmit/adapt/util/JSONArray.java:184–190  ·  view source on GitHub ↗

Get the object value associated with an index. @param index The index must be between 0 and length() - 1. @return An object value. @throws JSONException If there is no value for the index.

(int index)

Source from the content-addressed store, hash-verified

182 * @throws JSONException If there is no value for the index.
183 */
184 public Object get(int index) throws JSONException {
185 Object object = this.opt(index);
186 if (object == null) {
187 throw new JSONException("JSONArray[" + index + "] not found.");
188 }
189 return object;
190 }
191
192 /**
193 * Get the boolean value associated with an index. The string values "true"

Callers 12

toStringMethod · 0.95
toStringMethod · 0.95
getBooleanMethod · 0.95
getDoubleMethod · 0.95
getBigDecimalMethod · 0.95
getBigIntegerMethod · 0.95
getIntMethod · 0.95
getJSONArrayMethod · 0.95
getJSONObjectMethod · 0.95
getLongMethod · 0.95
getStringMethod · 0.95
similarMethod · 0.95

Calls 1

optMethod · 0.95

Tested by

no test coverage detected