java.lang.Object | |
↳ | com.urbanairship.json.JsonMap.Builder |
Builder class for JsonMap
Objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JsonMap |
build()
Create the JSON map.
| ||||||||||
JsonMap.Builder |
put(String key, double value)
Add a key and value to the JSON map.
| ||||||||||
JsonMap.Builder |
put(String key, int value)
Add a key and value to the JSON map.
| ||||||||||
JsonMap.Builder |
put(String key, long value)
Add a key and value to the JSON map.
| ||||||||||
JsonMap.Builder |
put(String key, JsonSerializable value)
Add a key and value to the JSON map.
| ||||||||||
JsonMap.Builder |
put(String key, String value)
Add a key and value to the JSON map.
| ||||||||||
JsonMap.Builder |
put(String key, char value)
Add a key and value to the JSON map.
| ||||||||||
JsonMap.Builder |
put(String key, boolean value)
Add a key and value to the JSON map.
| ||||||||||
JsonMap.Builder |
putAll(JsonMap map)
Add a pre-existing JSON map to the JSON map.
| ||||||||||
JsonMap.Builder |
putOpt(String key, Object value)
Add a key and value to the JSON map.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Add a key and value to the JSON map.
key | The key as a String. |
---|---|
value | The value as a double. |
Add a key and value to the JSON map.
key | The key as a String. |
---|---|
value | The value as an int. |
Add a key and value to the JSON map.
key | The key as a String. |
---|---|
value | The value as a long. |
Add a key and value to the JSON map.
key | The key as a String. |
---|---|
value | The value as a JsonSerializable. |
Add a key and value to the JSON map.
key | The key as a String. |
---|---|
value | The value as a String. |
Add a key and value to the JSON map.
key | The key as a String. |
---|---|
value | The value as a char. |
Add a key and value to the JSON map.
key | The key as a String. |
---|---|
value | The value as a boolean. |
Add a pre-existing JSON map to the JSON map.
map | A JsonMap instance. |
---|
Add a key and value to the JSON map.
key | The key as a String. |
---|---|
value | The value as an Object. If an exception is thrown while attempting to wrap this object as a JsonValue, it will be swallowed and the entry will be dropped from the map. |