类 IntOrLongOrDoubleStrategy
- java.lang.Object
-
- com.dss.sdk.utils.json.IntOrLongOrDoubleStrategy
-
- 所有已实现的接口:
com.google.gson.ToNumberStrategy
public class IntOrLongOrDoubleStrategy extends Object implements com.google.gson.ToNumberStrategy
自定义Gson数字转换策略; 优先转换为Integer,如果转换失败再转换为Long,如果再次转换失败再转换为Double
-
-
方法详细资料
-
readNumber
public Number readNumber(com.google.gson.stream.JsonReader in) throws IOException
- 指定者:
readNumber在接口中com.google.gson.ToNumberStrategy- 抛出:
IOException
-
-