getBigDecimal

Method to get from JSONObject a BigDecimal value

Return

value as BigDecimal, if it is not exist will return null value

Parameters

key

: key of BigDecimal value to get from json

Throws

: when this exception has been trowed will be returned null as default value


open fun getBigDecimal(key: String, defValue: BigDecimal): BigDecimal

Method to get from JSONObject a BigDecimal value

Return

value as BigDecimal, if it is not exist will return defValue

Parameters

key

: key of BigDecimal value to get from json

defValue

: default value to return if primary value not exists

Throws

: when this exception has been trowed will be returned null as default value


open fun getBigDecimal(jsonDetails: JSONObject, key: String): BigDecimal

Method to get from JSONObject a BigDecimal value

Return

value as BigDecimal, if it is not exist will return null value

Parameters

jsonDetails

: "JSON" from fetch data

key

: key of BigDecimal value to get from json

Throws

: when this exception has been trowed will be returned null as default value


open fun getBigDecimal(jsonDetails: JSONObject, key: String, defValue: BigDecimal): BigDecimal

Method to get from JSONObject a BigDecimal value

Return

value as BigDecimal, if it is not exist will return defValue

Parameters

jsonDetails

: "JSON" from fetch data

key

: key of BigDecimal value to get from json

defValue

: default value to return if primary value not exists

Throws

: when this exception has been trowed will be returned null as default value


open fun getBigDecimal(index: Int): BigDecimal

Method to get from JSONArray a BigDecimal value

Return

value as BigDecimal, if it is not exist will return null value

Parameters

index

: index of BigDecimal value to get from json


open fun getBigDecimal(index: Int, defValue: BigDecimal): BigDecimal

Method to get from JSONArray a BigDecimal value

Return

value as BigDecimal, if it is not exist will return defValue

Parameters

index

: index of BigDecimal value to get from json

defValue

: default value to return if primary value not exists


open fun getBigDecimal(jsonDetails: JSONArray, index: Int): BigDecimal

Method to get from JSONArray a BigDecimal value

Return

value as BigDecimal, if it is not exist will return null value

Parameters

jsonDetails

: "JSON" from fetch data

index

: index of BigDecimal value to get from json


open fun getBigDecimal(jsonDetails: JSONArray, index: Int, defValue: BigDecimal): BigDecimal

Method to get from JSONArray a BigDecimal value

Return

value as BigDecimal, if it is not exist will return defValue

Parameters

jsonDetails

: "JSON" from fetch data

index

: index of BigDecimal value to get from json

defValue

: default value to return if primary value not exists