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)
| 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 |