Class NumericUtils


  • public class NumericUtils
    extends Object
    • Constructor Detail

      • NumericUtils

        public NumericUtils()
    • Method Detail

      • isNumeric

        public static boolean isNumeric​(Object obj)
      • isIntegral

        public static boolean isIntegral​(Object obj)
      • zero

        public static <T extends Number> T zero​(T value)
      • gt

        public static <T extends Number> boolean gt​(T x,
                                                    T y)
      • ge

        public static <T extends Number> boolean ge​(T x,
                                                    T y)
      • lt

        public static <T extends Number> boolean lt​(T x,
                                                    T y)
      • le

        public static <T extends Number> boolean le​(T x,
                                                    T y)
      • eq

        public static <T extends Number> boolean eq​(T x,
                                                    T y)
      • ne

        public static <T extends Number> boolean ne​(T x,
                                                    T y)
      • isPositive

        public static <T extends Number> boolean isPositive​(T x)
      • isZero

        public static <T extends Number> boolean isZero​(T x)
      • isNegative

        public static <T extends Number> boolean isNegative​(T x)
      • isNonNegative

        public static <T extends Number> boolean isNonNegative​(T x)
      • isnonZero

        public static <T extends Number> boolean isnonZero​(T x)
      • isNonPostive

        public static <T extends Number> boolean isNonPostive​(T x)
      • compare

        public static <T extends Number> int compare​(T x,
                                                     T y)