Class CommonUtil
- java.lang.Object
-
- de.fraunhofer.iese.mydata.pep.common.CommonUtil
-
public class CommonUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
fixStringObject(Object o)
static boolean
getbooleanFromObject(Object o)
static String
getFromStringOrJsonPrimitive(Object input)
Only String or JsonPrimitive are allowed, else throws IllegalArgumentException("Only Strings allowed")static Integer
getIntegerFromObject(Object input)
Only String or JsonPrimitive are allowed, else throws IllegalArgumentException("Only Strings allowed")
-
-
-
Method Detail
-
getFromStringOrJsonPrimitive
public static String getFromStringOrJsonPrimitive(Object input)
Only String or JsonPrimitive are allowed, else throws IllegalArgumentException("Only Strings allowed")- Parameters:
input
-- Returns:
-
getIntegerFromObject
public static Integer getIntegerFromObject(Object input)
Only String or JsonPrimitive are allowed, else throws IllegalArgumentException("Only Strings allowed")- Parameters:
input
-- Returns:
-
getbooleanFromObject
public static boolean getbooleanFromObject(Object o)
-
-