Class IntegerMath
java.lang.Object
org.codehaus.groovy.runtime.typehandling.NumberMath
org.codehaus.groovy.runtime.typehandling.IntegerMath
public final class IntegerMath extends NumberMath
Integer NumberMath operations
-
Field Summary
Fields Modifier and Type Field Description static IntegerMath
INSTANCE
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class org.codehaus.groovy.runtime.typehandling.NumberMath
abs, add, and, bitwiseNegate, compareTo, createUnsupportedException, divide, getMath, intdiv, isBigDecimal, isBigInteger, isByte, isFloatingPoint, isInteger, isLong, isShort, leftShift, mod, multiply, or, rightShift, rightShiftUnsigned, subtract, toBigDecimal, toBigInteger, unaryMinus, unaryPlus, xor
-
Field Details
-
Method Details
-
absImpl
- Specified by:
absImpl
in classNumberMath
-
addImpl
- Specified by:
addImpl
in classNumberMath
-
subtractImpl
- Specified by:
subtractImpl
in classNumberMath
-
multiplyImpl
- Specified by:
multiplyImpl
in classNumberMath
-
divideImpl
- Specified by:
divideImpl
in classNumberMath
-
compareToImpl
- Specified by:
compareToImpl
in classNumberMath
-
orImpl
- Overrides:
orImpl
in classNumberMath
-
andImpl
- Overrides:
andImpl
in classNumberMath
-
xorImpl
- Overrides:
xorImpl
in classNumberMath
-
intdivImpl
- Overrides:
intdivImpl
in classNumberMath
-
modImpl
- Overrides:
modImpl
in classNumberMath
-
unaryMinusImpl
- Specified by:
unaryMinusImpl
in classNumberMath
-
unaryPlusImpl
- Specified by:
unaryPlusImpl
in classNumberMath
-
bitwiseNegateImpl
- Overrides:
bitwiseNegateImpl
in classNumberMath
-
leftShiftImpl
- Overrides:
leftShiftImpl
in classNumberMath
-
rightShiftImpl
- Overrides:
rightShiftImpl
in classNumberMath
-
rightShiftUnsignedImpl
- Overrides:
rightShiftUnsignedImpl
in classNumberMath
-