MCPcopy Create free account
hub / github.com/Twitter4J/Twitter4J / optInt

Method optInt

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

Returns the value at index if it exists and is an int or can be coerced to an int. Returns 0 otherwise. @param index Which value to get. @return the value at the specified location.

(int index)

Source from the content-addressed store, hash-verified

460 * @return the value at the specified location.
461 */
462 public int optInt(int index) {
463 return optInt(index, 0);
464 }
465
466 /**
467 * Returns the value at {@code index} if it exists and is an int or

Callers

nothing calls this directly

Calls 2

optMethod · 0.95
toIntegerMethod · 0.95

Tested by

no test coverage detected