Package org.labkey.remoteapi.internal
Class ResponseUtils
java.lang.Object
org.labkey.remoteapi.internal.ResponseUtils
-
Method Summary
Modifier and TypeMethodDescriptiondeepUnmodifiableList
(List<Object> list) deepUnmodifiableMap
(Map<String, Object> map) deepUnmodifiableMap
(org.json.JSONObject jsonObject) Convert JSON Object to map and make a thoroughly unmodifiable copy of that map.
Any nestedJSONObject
s orJSONArray
s will be similarly processed.
-
Method Details
-
deepUnmodifiableMap
Convert JSON Object to map and make a thoroughly unmodifiable copy of that map.
Any nestedJSONObject
s orJSONArray
s will be similarly processed.- Parameters:
jsonObject
- Map to copy- Returns:
- Unmodifiable copy of the provided JSONObject.
- See Also:
-
JSONObject.toMap()
-
deepUnmodifiableMap
Make a thoroughly unmodifiable copy of a Map that was generated by a JSONObject.
Any nestedMap
s orList
s will be made unmodifiable.- Parameters:
map
- Map to copy- Returns:
- Unmodifiable copy of the provided Map
- See Also:
-
JSONObject.toMap()
-
deepUnmodifiableList
Make a thoroughly unmodifiable copy of a List that was generated by a JSONArray.
Any nestedMap
s orList
s will also be made unmodifiable.- Parameters:
list
- List to copy- Returns:
- Unmodifiable copy of the provided Map
- See Also:
-
JSONArray.toList()
-