Package com.Leapwork.Leapwork_plugin
Class Utils
java.lang.Object
com.Leapwork.Leapwork_plugin.Utils
Created by User on 26.05.2017.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandefaultBooleanIfNull(com.google.gson.JsonElement rawBoolean, boolean defaultValue) static doubledefaultDoubleIfNull(com.google.gson.JsonElement jsonElement, double defaultValue) static StringdefaultElapsedIfNull(com.google.gson.JsonElement rawElapsed) static intdefaultIntIfNull(com.google.gson.JsonElement jsonElement, int defaultValue) static longdefaultLongIfNull(com.google.gson.JsonElement jsonElement, long defaultValue) static StringdefaultStringIfNull(com.google.gson.JsonElement jsonElement) static StringdefaultStringIfNull(com.google.gson.JsonElement jsonElement, String defaultValue) static UUIDdefaultUuidIfNull(com.google.gson.JsonElement jsonElement, UUID defaultValue) static booleanstatic <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
-