Put a key/int pair in the JSONObject. @webref jsonobject:method @brief Put a key/int pair in the JSONObject @param key a key string @param value the value to assign @return this. @throws RuntimeException If the key is null. @see JSONObject#setFloat(String, float) @see JSONObject#setString(String, S
(String key, int value)
| 1183 | * @see JSONObject#setBoolean(String, boolean) |
| 1184 | */ |
| 1185 | public JSONObject setInt(String key, int value) { |
| 1186 | this.put(key, Integer.valueOf(value)); |
| 1187 | return this; |
| 1188 | } |
| 1189 | |
| 1190 | |
| 1191 | /** |