Returns the value mapped by name. @throws JSONException if no such mapping exists.
(String name)
| 350 | * @throws JSONException if no such mapping exists. |
| 351 | */ |
| 352 | public Object get(String name) throws JSONException { |
| 353 | Object result = nameValuePairs.get(name); |
| 354 | if (result == null) { |
| 355 | throw new JSONException("No value for " + name); |
| 356 | } |
| 357 | return result; |
| 358 | } |
| 359 | |
| 360 | /** |
| 361 | * Returns the value mapped by {@code name}, or null if no such mapping |
no outgoing calls
no test coverage detected