public final class IntegerMath extends NumberMath
Modifier and Type | Field and Description |
---|---|
static IntegerMath |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected Number |
absImpl(Number number) |
Number |
addImpl(Number left,
Number right) |
protected Number |
andImpl(Number left,
Number right) |
protected Number |
bitwiseNegateImpl(Number left) |
int |
compareToImpl(Number left,
Number right) |
Number |
divideImpl(Number left,
Number right) |
protected Number |
intdivImpl(Number left,
Number right) |
protected Number |
leftShiftImpl(Number left,
Number right) |
protected Number |
modImpl(Number left,
Number right) |
Number |
multiplyImpl(Number left,
Number right) |
protected Number |
orImpl(Number left,
Number right) |
protected Number |
rightShiftImpl(Number left,
Number right) |
protected Number |
rightShiftUnsignedImpl(Number left,
Number right) |
Number |
subtractImpl(Number left,
Number right) |
protected Number |
unaryMinusImpl(Number left) |
protected Number |
unaryPlusImpl(Number left) |
protected Number |
xorImpl(Number left,
Number right) |
abs, add, and, bitwiseNegate, compareTo, createUnsupportedException, divide, getMath, intdiv, isBigDecimal, isBigInteger, isFloatingPoint, isInteger, isLong, leftShift, mod, multiply, or, rightShift, rightShiftUnsigned, subtract, toBigDecimal, toBigInteger, unaryMinus, unaryPlus, xor
public static final IntegerMath INSTANCE
protected Number absImpl(Number number)
absImpl
in class NumberMath
public Number addImpl(Number left, Number right)
addImpl
in class NumberMath
public Number subtractImpl(Number left, Number right)
subtractImpl
in class NumberMath
public Number multiplyImpl(Number left, Number right)
multiplyImpl
in class NumberMath
public Number divideImpl(Number left, Number right)
divideImpl
in class NumberMath
public int compareToImpl(Number left, Number right)
compareToImpl
in class NumberMath
protected Number orImpl(Number left, Number right)
orImpl
in class NumberMath
protected Number andImpl(Number left, Number right)
andImpl
in class NumberMath
protected Number xorImpl(Number left, Number right)
xorImpl
in class NumberMath
protected Number intdivImpl(Number left, Number right)
intdivImpl
in class NumberMath
protected Number modImpl(Number left, Number right)
modImpl
in class NumberMath
protected Number unaryMinusImpl(Number left)
unaryMinusImpl
in class NumberMath
protected Number unaryPlusImpl(Number left)
unaryPlusImpl
in class NumberMath
protected Number bitwiseNegateImpl(Number left)
bitwiseNegateImpl
in class NumberMath
protected Number leftShiftImpl(Number left, Number right)
leftShiftImpl
in class NumberMath
protected Number rightShiftImpl(Number left, Number right)
rightShiftImpl
in class NumberMath
protected Number rightShiftUnsignedImpl(Number left, Number right)
rightShiftUnsignedImpl
in class NumberMath