public class ArithmeticOperations extends Object
| Constructor and Description |
|---|
ArithmeticOperations() |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
add(BigDecimal x,
BigDecimal y)
Arithmetic operation - Add two columns.
|
static Double |
add(Double x,
Double y)
Arithmetic operation - Add two columns.
|
static Float |
add(Float x,
Float y)
Arithmetic operation - Add two columns.
|
static Integer |
add(Integer x,
Integer y)
Arithmetic operation - Add two columns.
|
static BigDecimal |
divideq(BigDecimal x,
BigDecimal y)
Arithmetic operation - Divide a column by another and return the quotient.
|
static Double |
divideq(Double x,
Double y)
Arithmetic operation - Divide a column by another and return the quotient.
|
static Float |
divideq(Float x,
Float y)
Arithmetic operation - Divide a column by another and return the quotient.
|
static Integer |
divideq(Integer x,
Integer y)
Arithmetic operation - Divide a column by another and return the quotient.
|
static BigDecimal |
divider(BigDecimal x,
BigDecimal y)
Arithmetic operation - Divide a column by another and return the remainder.
|
static Double |
divider(Double x,
Double y)
Arithmetic operation - Divide a column by another and return the remainder.
|
static Float |
divider(Float x,
Float y)
Arithmetic operation - Divide a column by another and return the remainder.
|
static Integer |
divider(Integer x,
Integer y)
Arithmetic operation - Divide a column by another and return the remainder.
|
static Boolean |
equal(BigDecimal bd1,
BigDecimal bd2)
Arithmetic operation - Check if a value is equal to another column.
|
static Boolean |
equal(Double d1,
Double d2)
Arithmetic operation - Check if a value is equal to another column.
|
static Boolean |
equal(Float f1,
Float f2)
Arithmetic operation - Check if a value is equal to another column.
|
static Boolean |
equal(Integer i1,
Integer i2)
Arithmetic operation - Check if a value is equal to another column.
|
static BigDecimal |
lcm(BigDecimal bd1,
BigDecimal bd2)
Arithmetic operation - calculate LCM of two columns.
|
static Double |
lcm(Double d1,
Double d2)
Arithmetic operation - calculate LCM of two columns.
|
static Float |
lcm(Float f1,
Float f2)
Arithmetic operation - calculate LCM of two columns.
|
static Integer |
lcm(Integer i1,
Integer i2)
Arithmetic operation - calculate LCM of two columns.
|
static BigDecimal |
max(BigDecimal bd1,
BigDecimal bd2)
Arithmetic operation - Find the maximum of two columns.
|
static Double |
max(Double d1,
Double d2)
Arithmetic operation - Find the maximum of two columns.
|
static Float |
max(Float f1,
Float f2)
Arithmetic operation - Find the maximum of two columns.
|
static Integer |
max(Integer i1,
Integer i2)
Arithmetic operation - Find the maximum of two columns.
|
static BigDecimal |
min(BigDecimal bd1,
BigDecimal bd2)
Arithmetic operation - Find the minimum of two columns.
|
static Double |
min(Double d1,
Double d2)
Arithmetic operation - Find the minimum of two columns.
|
static Float |
min(Float f1,
Float f2)
Arithmetic operation - Find the minimum of two columns.
|
static Integer |
min(Integer i1,
Integer i2)
Arithmetic operation - Find the minimum of two columns.
|
static BigDecimal |
minus(BigDecimal x,
BigDecimal y)
Arithmetic operation - Subtract a column from another column.
|
static Double |
minus(Double x,
Double y)
Arithmetic operation - Subtract a column from another column.
|
static Float |
minus(Float x,
Float y)
Arithmetic operation - Subtract a column from another column.
|
static Integer |
minus(Integer x,
Integer y)
Arithmetic operation - Subtract a column from another column.
|
static BigDecimal |
multiply(BigDecimal x,
BigDecimal y)
Arithmetic operation - Multiply a column with another column.
|
static Double |
multiply(Double x,
Double y)
Arithmetic operation - Multiply a column with another column.
|
static Float |
multiply(Float x,
Float y)
Arithmetic operation - Multiply a column with another column.
|
static Integer |
multiply(Integer x,
Integer y)
Arithmetic operation - Multiply a column with another column.
|
public static BigDecimal add(BigDecimal x, BigDecimal y)
public static Integer minus(Integer x, Integer y)
public static Double minus(Double x, Double y)
public static Float minus(Float x, Float y)
public static BigDecimal minus(BigDecimal x, BigDecimal y)
public static Integer multiply(Integer x, Integer y)
public static Double multiply(Double x, Double y)
public static Float multiply(Float x, Float y)
public static BigDecimal multiply(BigDecimal x, BigDecimal y)
public static Integer divideq(Integer x, Integer y)
public static Double divideq(Double x, Double y)
public static Float divideq(Float x, Float y)
public static BigDecimal divideq(BigDecimal x, BigDecimal y)
public static Integer divider(Integer x, Integer y)
public static Double divider(Double x, Double y)
public static Float divider(Float x, Float y)
public static BigDecimal divider(BigDecimal x, BigDecimal y)
public static Integer lcm(Integer i1, Integer i2)
public static Double lcm(Double d1, Double d2)
public static Float lcm(Float f1, Float f2)
public static BigDecimal lcm(BigDecimal bd1, BigDecimal bd2)
public static Boolean equal(Integer i1, Integer i2)
public static Boolean equal(Double d1, Double d2)
public static Boolean equal(Float f1, Float f2)
public static Boolean equal(BigDecimal bd1, BigDecimal bd2)
public static Integer max(Integer i1, Integer i2)
public static Double max(Double d1, Double d2)
public static Float max(Float f1, Float f2)
public static BigDecimal max(BigDecimal bd1, BigDecimal bd2)
public static Integer min(Integer i1, Integer i2)
public static Double min(Double d1, Double d2)
public static Float min(Float f1, Float f2)
public static BigDecimal min(BigDecimal bd1, BigDecimal bd2)
Copyright © 2021 CDAP Licensed under the Apache License, Version 2.0.