Put a key/double pair in the JSONObject. @param key A key string. @param value A double which is the value. @return this. @throws RuntimeException If the key is null or if the number is NaN or infinite.
(String key, double value)
| 1226 | * @throws RuntimeException If the key is null or if the number is NaN or infinite. |
| 1227 | */ |
| 1228 | public JSONObject setDouble(String key, double value) { |
| 1229 | this.put(key, Double.valueOf(value)); |
| 1230 | return this; |
| 1231 | } |
| 1232 | |
| 1233 | |
| 1234 | /** |