Tools.getNumberValueFromJsonObject(JsonObject jsonObject, String key) 方法

定义

Helper function to get numeric value from a JsonObject

public static long getNumberValueFromJsonObject(JsonObject jsonObject, String key)

参数

jsonObject
JsonObject

The JsonObject object to get the value from

key
String

The name of the key

返回

long

The numeric value

适用于