Class ArithmeticFunctions


  • public class ArithmeticFunctions
    extends Object
    Arithmetic built-in functions.
    • Constructor Detail

      • ArithmeticFunctions

        public ArithmeticFunctions()
    • Method Detail

      • plus

        public static int plus​(byte lhs,
                               byte rhs)
      • plus

        public static int plus​(short lhs,
                               short rhs)
      • plus

        public static int plus​(int lhs,
                               int rhs)
      • plus

        public static long plus​(long lhs,
                                long rhs)
      • plus

        public static float plus​(float lhs,
                                 float rhs)
      • plus

        public static double plus​(double lhs,
                                  double rhs)
      • minus

        public static int minus​(byte lhs,
                                byte rhs)
      • minus

        public static int minus​(short lhs,
                                short rhs)
      • minus

        public static int minus​(int lhs,
                                int rhs)
      • minus

        public static long minus​(long lhs,
                                 long rhs)
      • minus

        public static float minus​(float lhs,
                                  float rhs)
      • minus

        public static double minus​(double lhs,
                                   double rhs)
      • times

        public static int times​(byte lhs,
                                byte rhs)
      • times

        public static int times​(short lhs,
                                short rhs)
      • times

        public static int times​(int lhs,
                                int rhs)
      • times

        public static long times​(long lhs,
                                 long rhs)
      • times

        public static float times​(float lhs,
                                  float rhs)
      • times

        public static double times​(double lhs,
                                   double rhs)
      • divides

        public static int divides​(byte lhs,
                                  byte rhs)
      • divides

        public static int divides​(short lhs,
                                  short rhs)
      • divides

        public static int divides​(int lhs,
                                  int rhs)
      • divides

        public static long divides​(long lhs,
                                   long rhs)
      • divides

        public static float divides​(float lhs,
                                    float rhs)
      • divides

        public static double divides​(double lhs,
                                     double rhs)
      • mods

        public static int mods​(byte lhs,
                               byte rhs)
      • mods

        public static int mods​(short lhs,
                               short rhs)
      • mods

        public static int mods​(int lhs,
                               int rhs)
      • mods

        public static int mods​(long lhs,
                               long rhs)
      • abs

        public static Byte abs​(Byte value)
        SQL ABS operator applied to byte values.
      • abs

        public static Short abs​(Short value)
        SQL ABS operator applied to short values.
      • abs

        public static Integer abs​(Integer value)
        SQL ABS operator applied to int values.
      • abs

        public static Long abs​(Long value)
        SQL ABS operator applied to long values.
      • abs

        public static Float abs​(Float value)
        SQL ABS operator applied to float values.
      • abs

        public static Double abs​(Double value)
        SQL ABS operator applied to double values.
      • abs

        public static BigDecimal abs​(BigDecimal value)
        SQL ABS operator applied to decimal values.
      • floor

        public static Byte floor​(Byte value)
      • floor

        public static Short floor​(Short value)
      • floor

        public static Long floor​(Long value)
      • floor

        public static Float floor​(Float value)
      • ceil

        public static Byte ceil​(Byte value)
      • ceil

        public static Short ceil​(Short value)
      • ceil

        public static Long ceil​(Long value)
      • ceil

        public static Float ceil​(Float value)
      • round

        public static Byte round​(Byte value,
                                 int pointOffset)
        SQL ROUND operator applied to byte values.
      • round

        public static Short round​(Short value,
                                  int pointOffset)
        SQL ROUND operator applied to short values.
      • round

        public static Integer round​(Integer value,
                                    int pointOffset)
        SQL ROUND operator applied to int values.
      • round

        public static Long round​(Long value,
                                 int pointOffset)
        SQL ROUND operator applied to long values.
      • round

        public static Float round​(Float value,
                                  int pointOffset)
        SQL ROUND operator applied to float values.
      • round

        public static Double round​(Double value,
                                   int pointOffset)
        SQL ROUND operator applied to double values.