public class MapUtil
extends java.lang.Object
Constructor and Description |
---|
MapUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
addBundleToMap(Bundle bundle,
java.util.List<java.lang.String> keys,
java.util.Map<java.lang.String,java.lang.String> map)
Adds a map of key-value pairs extracted from a bundle.
|
static java.util.Map<java.lang.String,java.lang.String> |
addJSONObjectToMap(JSONObject jsonObject,
java.util.List<java.lang.String> keys,
java.util.Map<java.lang.String,java.lang.String> map)
Adds a map of key-value pairs extracted from a JSONObject.
|
static Bundle |
addMapToBundle(java.util.Map<java.lang.String,java.lang.String> map,
java.util.List<java.lang.String> keys,
Bundle bundle)
Adds a bundle of key-value pairs extracted from a map.
|
static JSONObject |
addMapToJSONObject(java.util.Map<java.lang.String,java.lang.String> map,
java.util.List<java.lang.String> keys,
JSONObject jsonObject)
Adds a JSONObject of key-value pairs extracted from a map.
|
public static java.util.Map<java.lang.String,java.lang.String> addBundleToMap(Bundle bundle, java.util.List<java.lang.String> keys, java.util.Map<java.lang.String,java.lang.String> map)
bundle
- Bundle.keys
- Keys.map
- Map to be added to.public static Bundle addMapToBundle(java.util.Map<java.lang.String,java.lang.String> map, java.util.List<java.lang.String> keys, Bundle bundle)
map
- Map.keys
- Keys.bundle
- Bundle to be added to.public static java.util.Map<java.lang.String,java.lang.String> addJSONObjectToMap(JSONObject jsonObject, java.util.List<java.lang.String> keys, java.util.Map<java.lang.String,java.lang.String> map)
jsonObject
- JSONObject.keys
- Keys.map
- Map to be added to.public static JSONObject addMapToJSONObject(java.util.Map<java.lang.String,java.lang.String> map, java.util.List<java.lang.String> keys, JSONObject jsonObject)
map
- Map.keys
- Keys.jsonObject
- JSONObject to be added to.