fetchVList

open fun <T> fetchVList(searchKey: String): ArrayList<T>

Method to get from JSONObject a list of values automatically

Return

list of values as ArrayList of T, if it is not exist will return null

Parameters

searchKey

: key for value to fetch


open fun <T, V : ArrayList<out Any>?> fetchVList(searchKey: String, defValue: V): ArrayList<T>

Method to get from JSONObject a list of values automatically

Return

list of values as ArrayList of T, if it is not exist will return null

Parameters

searchKey

: key for value to fetch

defValue

: default value to return if not found what searched


open fun <T> fetchVList(json: JSONObject, searchKey: String): ArrayList<T>

Method to get from JSONObject a list of values automatically

Return

list of values as ArrayList of T, if it is not exist will return null

Parameters

json

: JSONObject from fetch list

searchKey

: key for value to fetch


open fun <T, V : ArrayList<out Any>?> fetchVList(json: JSONObject, searchKey: String, defValue: V): ArrayList<T>

Method to get from JSONObject a list of values automatically

Return

list of values as ArrayList of T, if it is not exist will return null

Parameters

json

: JSONObject from fetch list

searchKey

: key for value to fetch

defValue

: default value to return if not found what searched


open fun <T> fetchVList(searchKey: String, listKey: String): ArrayList<T>

Method to get from JSONObject a list of values automatically

Return

list of values as ArrayList of T, if it is not exist will return null

Parameters

searchKey

: key for value to fetch

listKey

: list key for value to fetch


open fun <T, V : ArrayList<out Any>?> fetchVList(searchKey: String, listKey: String, defValue: V): ArrayList<T>

Method to get from JSONObject a list of values automatically

Return

list of values as ArrayList of T, if it is not exist will return null

Parameters

searchKey

: key for value to fetch

listKey

: list key for value to fetch

defValue

: default value to return if not found what searched


open fun <T> fetchVList(json: JSONObject, searchKey: String, listKey: String): ArrayList<T>

Method to get from JSONObject a list of values automatically

Return

list of values as ArrayList of T, if it is not exist will return null

Parameters

json

: JSONObject from fetch list

searchKey

: key for value to fetch

listKey

: list key for value to fetch


open fun <T, V : ArrayList<out Any>?> fetchVList(json: JSONObject, searchKey: String, listKey: String, defValue: V): ArrayList<T>

Method to get from JSONObject a list of values automatically

Return

list of values as ArrayList of T, if it is not exist will return null

Parameters

json

: JSONObject from fetch list

searchKey

: key for value to fetch

listKey

: list key for value to fetch

defValue

: default value to return if not found what searched