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

Method opt

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

Returns the value at index, or null if the array has no value at index. @param index Which value to get. @return the value at the specified location.

(int index)

Source from the content-addressed store, hash-verified

328 * @return the value at the specified location.
329 */
330 public Object opt(int index) {
331 if (index < 0 || index >= values.size()) {
332 return null;
333 }
334 return values.get(index);
335 }
336
337 /**
338 * Removes and returns the value at {@code index}, or null if the array has no value

Callers 9

isNullMethod · 0.95
optBooleanMethod · 0.95
optDoubleMethod · 0.95
optIntMethod · 0.95
optLongMethod · 0.95
optStringMethod · 0.95
optJSONArrayMethod · 0.95
optJSONObjectMethod · 0.95
toJSONObjectMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected