Package com.Leapwork.Leapwork_plugin
Class Utils
java.lang.Object
com.Leapwork.Leapwork_plugin.Utils
Created by User on 26.05.2017.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
static <TKey,
TValue>
booleantryAddToMap
(Map<TKey, TValue> map, TKey key, TValue value)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
defaultStringIfNull
-
defaultStringIfNull
-
defaultUuidIfNull
-
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
-
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
-
isBlank
-