@Environment(value=CLIENT) public class JsonUtils extends Object
Constructor and Description |
---|
JsonUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBooleanOr(String key,
JsonObject node,
boolean defaultValue) |
static Date |
getDateOr(String key,
JsonObject node) |
static int |
getIntOr(String key,
JsonObject node,
int defaultValue) |
static long |
getLongOr(String key,
JsonObject node,
long defaultValue) |
static String |
getStringOr(String key,
JsonObject node,
String defaultValue) |
public static String getStringOr(String key, JsonObject node, String defaultValue)
public static int getIntOr(String key, JsonObject node, int defaultValue)
public static long getLongOr(String key, JsonObject node, long defaultValue)
public static boolean getBooleanOr(String key, JsonObject node, boolean defaultValue)
public static Date getDateOr(String key, JsonObject node)