public class Params extends java.lang.Object implements JsonParams
| Constructor and Description |
|---|
Params()
Creates a new instance.
|
Params(org.json.JSONObject json) |
Params(Params params)
Copy constructor creating a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Params |
put(java.lang.String key,
JsonParams value)
Puts nested parameters under the key.
|
Params |
put(java.lang.String key,
java.lang.Object value)
Puts nested parameters under the key.
|
org.json.JSONObject |
toJson() |
public Params()
public Params(Params params) throws org.json.JSONException
params - the params to copy fromorg.json.JSONException - if params is not valid JSONpublic Params(org.json.JSONObject json)
public org.json.JSONObject toJson()
toJson in interface JsonParamspublic Params put(java.lang.String key, java.lang.Object value)
key - the keyvalue - the parametersParams instancejava.lang.IllegalArgumentException - if the key is null or emptypublic Params put(java.lang.String key, JsonParams value)
key - the keyvalue - the parametersParams instancejava.lang.IllegalArgumentException - if the key is null or empty