Class Numbers


  • public class Numbers
    extends Object
    Author:
    S. Ricci
    • Constructor Detail

      • Numbers

        public Numbers()
    • Method Detail

      • isNumber

        public static boolean isNumber​(Object value)
      • toInt

        public static int toInt​(Object value)
      • toInt

        public static int toInt​(Object value,
                                int defaultValue)
      • toIntegerObject

        public static Integer toIntegerObject​(Object value)
      • toDouble

        public static double toDouble​(Object value)
      • toDouble

        public static double toDouble​(Object value,
                                      double defaultValue)
      • toDoubleObject

        public static Double toDoubleObject​(Object value)
      • toLong

        public static long toLong​(Object value)
      • toLong

        public static long toLong​(Object value,
                                  long defaultValue)
      • toLongObject

        public static Long toLongObject​(Object value)