Inserts a new key/int pair into the JSONObject or, if a value with the specified key already exists, assigns a new value. @webref jsonobject:method @webBrief Inserts a new key/int pair into the JSONObject @param key a key string @param value the value to assign @return this. @throws R
(String key, int value)
| 1229 | * @see JSONObject#setBoolean(String, boolean) |
| 1230 | */ |
| 1231 | public JSONObject setInt(String key, int value) { |
| 1232 | this.put(key, Integer.valueOf(value)); |
| 1233 | return this; |
| 1234 | } |
| 1235 | |
| 1236 | |
| 1237 | /** |