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

Method getInt

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

Returns the value at index if it exists and is an int or can be coerced to an int. @param index Which value to get. @return the value at the specified location. @throws JSONException if the value at index doesn't exist or cannot be coerced to a int.

(int index)

Source from the content-addressed store, hash-verified

444 * cannot be coerced to a int.
445 */
446 public int getInt(int index) throws JSONException {
447 Object object = get(index);
448 Integer result = JSON.toInteger(object);
449 if (result == null) {
450 throw JSON.typeMismatch(index, object, "int");
451 }
452 return result;
453 }
454
455 /**
456 * Returns the value at {@code index} if it exists and is an int or

Callers 11

initMethod · 0.95
MediaEntityJSONImplMethod · 0.95
initMethod · 0.95
initMethod · 0.95
initMethod · 0.95
mergeExtendedTweetMethod · 0.95
decodeMethod · 0.45
SizeMethod · 0.45
VariantMethod · 0.45
initMethod · 0.45
StallWarningImplMethod · 0.45

Calls 3

getMethod · 0.95
toIntegerMethod · 0.95
typeMismatchMethod · 0.95

Tested by

no test coverage detected