Put a key/long pair in the JSONObject. @param key A key string. @param value A long which is the value. @return this. @throws RuntimeException If the key is null.
(String key, long value)
| 1197 | * @throws RuntimeException If the key is null. |
| 1198 | */ |
| 1199 | public JSONObject setLong(String key, long value) { |
| 1200 | this.put(key, Long.valueOf(value)); |
| 1201 | return this; |
| 1202 | } |
| 1203 | |
| 1204 | /** |
| 1205 | * @webref jsonobject:method |