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

Method get

src/main/java/com/mcbans/plugin/org/json/JSONArray.java:193–199  ·  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

191 * @throws JSONException If there is no value for the index.
192 */
193 public Object get(int index) throws JSONException {
194 Object object = opt(index);
195 if (object == null) {
196 throw new JSONException("JSONArray[" + index + "] not found.");
197 }
198 return object;
199 }
200
201
202 /**

Callers 15

toStringMethod · 0.95
toStringMethod · 0.95
getBooleanMethod · 0.95
getDoubleMethod · 0.95
getIntMethod · 0.95
getJSONArrayMethod · 0.95
getJSONObjectMethod · 0.95
getLongMethod · 0.95
getStringMethod · 0.95
loadLanguageFileMethod · 0.45
localizeMethod · 0.45
getStringMethod · 0.45

Calls 1

optMethod · 0.95

Tested by

no test coverage detected