类 GsonHelper

java.lang.Object
org.openurp.base.util.GsonHelper

public class GsonHelper extends Object
  • 构造器详细资料

    • GsonHelper

      public GsonHelper()
  • 方法详细资料

    • isNull

      public static boolean isNull(com.google.gson.JsonElement element)
    • isNotNull

      public static boolean isNotNull(com.google.gson.JsonElement element)
    • getLong

      public static Long getLong(com.google.gson.JsonObject json, String property)
    • getPrimitiveLong

      public static long getPrimitiveLong(com.google.gson.JsonObject json, String property)
    • getInteger

      public static Integer getInteger(com.google.gson.JsonObject json, String property)
    • getPrimitiveInteger

      public static int getPrimitiveInteger(com.google.gson.JsonObject json, String property)
    • getDouble

      public static Double getDouble(com.google.gson.JsonObject json, String property)
    • getPrimitiveDouble

      public static double getPrimitiveDouble(com.google.gson.JsonObject json, String property)
    • getFloat

      public static Float getFloat(com.google.gson.JsonObject json, String property)
    • getPrimitiveFloat

      public static float getPrimitiveFloat(com.google.gson.JsonObject json, String property)
    • getBoolean

      public static Boolean getBoolean(com.google.gson.JsonObject json, String property)
    • getString

      public static String getString(com.google.gson.JsonObject json, String property)
    • getAsString

      public static String getAsString(com.google.gson.JsonElement element)
    • getAsLong

      public static Long getAsLong(com.google.gson.JsonElement element)
    • getAsPrimitiveLong

      public static long getAsPrimitiveLong(com.google.gson.JsonElement element)
    • getAsInteger

      public static Integer getAsInteger(com.google.gson.JsonElement element)
    • getAsPrimitiveInt

      public static int getAsPrimitiveInt(com.google.gson.JsonElement element)
    • getAsBoolean

      public static Boolean getAsBoolean(com.google.gson.JsonElement element)
    • getAsPrimitiveBool

      public static boolean getAsPrimitiveBool(com.google.gson.JsonElement element)
    • getAsDouble

      public static Double getAsDouble(com.google.gson.JsonElement element)
    • getAsPrimitiveDouble

      public static double getAsPrimitiveDouble(com.google.gson.JsonElement element)
    • getAsFloat

      public static Float getAsFloat(com.google.gson.JsonElement element)
    • getAsPrimitiveFloat

      public static float getAsPrimitiveFloat(com.google.gson.JsonElement element)