public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
defaultBooleanIfNull(com.google.gson.JsonElement rawBoolean,
boolean defaultValue) |
static double |
defaultDoubleIfNull(com.google.gson.JsonElement jsonElement,
double defaultValue) |
static String |
defaultElapsedIfNull(com.google.gson.JsonElement rawElapsed) |
static int |
defaultIntIfNull(com.google.gson.JsonElement jsonElement,
int defaultValue) |
static long |
defaultLongIfNull(com.google.gson.JsonElement jsonElement,
long defaultValue) |
static String |
defaultStringIfNull(com.google.gson.JsonElement jsonElement) |
static String |
defaultStringIfNull(com.google.gson.JsonElement jsonElement,
String defaultValue) |
static UUID |
defaultUuidIfNull(com.google.gson.JsonElement jsonElement,
UUID defaultValue) |
static boolean |
isBlank(String str) |
static <TKey,TValue> |
tryAddToMap(Map<TKey,TValue> map,
TKey key,
TValue value) |
public static String defaultStringIfNull(com.google.gson.JsonElement jsonElement)
public static String defaultStringIfNull(com.google.gson.JsonElement jsonElement, String defaultValue)
public static UUID defaultUuidIfNull(com.google.gson.JsonElement jsonElement, UUID defaultValue)
public static int defaultIntIfNull(com.google.gson.JsonElement jsonElement,
int defaultValue)
public static long defaultLongIfNull(com.google.gson.JsonElement jsonElement,
long defaultValue)
public static String defaultElapsedIfNull(com.google.gson.JsonElement rawElapsed)
public static double defaultDoubleIfNull(com.google.gson.JsonElement jsonElement,
double defaultValue)
public static boolean defaultBooleanIfNull(com.google.gson.JsonElement rawBoolean,
boolean defaultValue)
public static <TKey,TValue> boolean tryAddToMap(Map<TKey,TValue> map, TKey key, TValue value)
public static boolean isBlank(String str)
Copyright © 2016–2021. All rights reserved.