Class CommonUtil


  • public class CommonUtil
    extends Object
    • 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)
      • fixStringObject

        public static String fixStringObject​(Object o)