MCPcopy Index your code
hub / github.com/Twitter4J/Twitter4J / get

Method get

twitter4j-core/src/json/java/twitter4j/JSONArray.java:311–321  ·  view source on GitHub ↗

Returns the value at index. @param index Which value to get. @return the value at the specified location. @throws JSONException if this array has no value at index, or if that value is the null reference. This method returns normal

(int index)

Source from the content-addressed store, hash-verified

309 * normally if the value is {@code JSONObject#NULL}.
310 */
311 public Object get(int index) throws JSONException {
312 try {
313 Object value = values.get(index);
314 if (value == null) {
315 throw new JSONException("Value at " + index + " is null.");
316 }
317 return value;
318 } catch (IndexOutOfBoundsException e) {
319 throw new JSONException("Index " + index + " out of range [0.." + values.size() + ")");
320 }
321 }
322
323 /**
324 * Returns the value at {@code index}, or null if the array has no value

Callers 15

getBooleanMethod · 0.95
getDoubleMethod · 0.95
getIntMethod · 0.95
getLongMethod · 0.95
getStringMethod · 0.95
getJSONArrayMethod · 0.95
getJSONObjectMethod · 0.95
mainMethod · 0.45
mainMethod · 0.45
getMethodStatisticsMethod · 0.45
getMethodLevelSummaryMethod · 0.45
testSavedSearchesMethod · 0.45

Calls

no outgoing calls

Tested by 15

testSavedSearchesMethod · 0.36
testGetHomeTimelineMethod · 0.36
testUserTimelineMethod · 0.36
testGetMentionsMethod · 0.36
testLookupUsersMethod · 0.36