类 GsonUtils
java.lang.Object
committee.nova.mods.avaritia.api.util.GsonUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static float[]getAsFloatArray(com.google.gson.JsonElement element, int expectedLength) 从 JsonElement 中获取浮点数数组
-
构造器详细资料
-
GsonUtils
public GsonUtils()
-
-
方法详细资料
-
getAsFloatArray
public static float[] getAsFloatArray(com.google.gson.JsonElement element, int expectedLength) 从 JsonElement 中获取浮点数数组- 参数:
element- JSON 元素expectedLength- 期望的数组长度- 返回:
- 浮点数数组
- 抛出:
IllegalArgumentException- 如果元素不是数组或长度不匹配
-