Package com.Leapwork.Leapwork_plugin
Class Utils
- java.lang.Object
-
- com.Leapwork.Leapwork_plugin.Utils
-
public class Utils extends Object
Created by User on 26.05.2017.
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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>
booleantryAddToMap(Map<TKey,TValue> map, TKey key, TValue value)
-
-
-
Method Detail
-
defaultStringIfNull
public static String defaultStringIfNull(com.google.gson.JsonElement jsonElement)
-
defaultStringIfNull
public static String defaultStringIfNull(com.google.gson.JsonElement jsonElement, String defaultValue)
-
defaultUuidIfNull
public static UUID defaultUuidIfNull(com.google.gson.JsonElement jsonElement, UUID defaultValue)
-
defaultIntIfNull
public static int defaultIntIfNull(com.google.gson.JsonElement jsonElement, int defaultValue)
-
defaultLongIfNull
public static long defaultLongIfNull(com.google.gson.JsonElement jsonElement, long defaultValue)
-
defaultElapsedIfNull
public static String defaultElapsedIfNull(com.google.gson.JsonElement rawElapsed)
-
defaultDoubleIfNull
public static double defaultDoubleIfNull(com.google.gson.JsonElement jsonElement, double defaultValue)
-
defaultBooleanIfNull
public static boolean defaultBooleanIfNull(com.google.gson.JsonElement rawBoolean, boolean defaultValue)
-
tryAddToMap
public static <TKey,TValue> boolean tryAddToMap(Map<TKey,TValue> map, TKey key, TValue value)
-
isBlank
public static boolean isBlank(String str)
-
-