getJSONArray

open fun getJSONArray(@NonNull() key: String): JSONArray

Return the JSONArray in cache.

Return

the JSONArray if cache exists or null otherwise

Parameters

key

The key of cache.

open fun getJSONArray(@NonNull() key: String, defaultValue: JSONArray): JSONArray

Return the JSONArray in cache.

Return

the JSONArray if cache exists or defaultValue otherwise

Parameters

key

The key of cache.

defaultValue

The default value if the cache doesn't exist.