Class LongMath
java.lang.Object
org.codehaus.groovy.runtime.typehandling.NumberMath
org.codehaus.groovy.runtime.typehandling.LongMath
public final class LongMath extends NumberMath
Long NumberMath operations
-
Field Summary
-
Method Summary
Modifier and Type Method Description protected java.lang.Number
absImpl(java.lang.Number number)
java.lang.Number
addImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
andImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
bitAndImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
bitwiseNegateImpl(java.lang.Number left)
int
compareToImpl(java.lang.Number left, java.lang.Number right)
java.lang.Number
divideImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
intdivImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
leftShiftImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
modImpl(java.lang.Number left, java.lang.Number right)
java.lang.Number
multiplyImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
orImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
rightShiftImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
rightShiftUnsignedImpl(java.lang.Number left, java.lang.Number right)
java.lang.Number
subtractImpl(java.lang.Number left, java.lang.Number right)
protected java.lang.Number
unaryMinusImpl(java.lang.Number left)
protected java.lang.Number
unaryPlusImpl(java.lang.Number left)
protected java.lang.Number
xorImpl(java.lang.Number left, java.lang.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INSTANCE
-
-
Method Details
-
absImpl
protected java.lang.Number absImpl(java.lang.Number number)- Specified by:
absImpl
in classNumberMath
-
addImpl
public java.lang.Number addImpl(java.lang.Number left, java.lang.Number right)- Specified by:
addImpl
in classNumberMath
-
subtractImpl
public java.lang.Number subtractImpl(java.lang.Number left, java.lang.Number right)- Specified by:
subtractImpl
in classNumberMath
-
multiplyImpl
public java.lang.Number multiplyImpl(java.lang.Number left, java.lang.Number right)- Specified by:
multiplyImpl
in classNumberMath
-
divideImpl
public java.lang.Number divideImpl(java.lang.Number left, java.lang.Number right)- Specified by:
divideImpl
in classNumberMath
-
compareToImpl
public int compareToImpl(java.lang.Number left, java.lang.Number right)- Specified by:
compareToImpl
in classNumberMath
-
intdivImpl
protected java.lang.Number intdivImpl(java.lang.Number left, java.lang.Number right)- Overrides:
intdivImpl
in classNumberMath
-
modImpl
protected java.lang.Number modImpl(java.lang.Number left, java.lang.Number right)- Overrides:
modImpl
in classNumberMath
-
unaryMinusImpl
protected java.lang.Number unaryMinusImpl(java.lang.Number left)- Specified by:
unaryMinusImpl
in classNumberMath
-
unaryPlusImpl
protected java.lang.Number unaryPlusImpl(java.lang.Number left)- Specified by:
unaryPlusImpl
in classNumberMath
-
bitwiseNegateImpl
protected java.lang.Number bitwiseNegateImpl(java.lang.Number left)- Overrides:
bitwiseNegateImpl
in classNumberMath
-
orImpl
protected java.lang.Number orImpl(java.lang.Number left, java.lang.Number right)- Overrides:
orImpl
in classNumberMath
-
andImpl
protected java.lang.Number andImpl(java.lang.Number left, java.lang.Number right)- Overrides:
andImpl
in classNumberMath
-
xorImpl
protected java.lang.Number xorImpl(java.lang.Number left, java.lang.Number right)- Overrides:
xorImpl
in classNumberMath
-
leftShiftImpl
protected java.lang.Number leftShiftImpl(java.lang.Number left, java.lang.Number right)- Overrides:
leftShiftImpl
in classNumberMath
-
rightShiftImpl
protected java.lang.Number rightShiftImpl(java.lang.Number left, java.lang.Number right)- Overrides:
rightShiftImpl
in classNumberMath
-
rightShiftUnsignedImpl
protected java.lang.Number rightShiftUnsignedImpl(java.lang.Number left, java.lang.Number right)- Overrides:
rightShiftUnsignedImpl
in classNumberMath
-
bitAndImpl
protected java.lang.Number bitAndImpl(java.lang.Number left, java.lang.Number right)
-