Class FloatingPointMath
- java.lang.Object
-
- org.codehaus.groovy.runtime.typehandling.NumberMath
-
- org.codehaus.groovy.runtime.typehandling.FloatingPointMath
-
public final class FloatingPointMath extends NumberMath
FloatingPoint (Double and Float) NumberMath operations
-
-
Field Summary
Fields Modifier and Type Field Description static FloatingPointMath
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Number
absImpl(Number number)
Number
addImpl(Number left, Number right)
int
compareToImpl(Number left, Number right)
Number
divideImpl(Number left, Number right)
protected Number
modImpl(Number left, Number right)
Number
multiplyImpl(Number left, Number right)
Number
subtractImpl(Number left, Number right)
protected Number
unaryMinusImpl(Number left)
protected Number
unaryPlusImpl(Number left)
-
Methods inherited from class org.codehaus.groovy.runtime.typehandling.NumberMath
abs, add, and, andImpl, bitwiseNegate, bitwiseNegateImpl, compareTo, createUnsupportedException, divide, getMath, intdiv, intdivImpl, isBigDecimal, isBigInteger, isByte, isFloatingPoint, isInteger, isLong, isShort, leftShift, leftShiftImpl, mod, multiply, or, orImpl, rightShift, rightShiftImpl, rightShiftUnsigned, rightShiftUnsignedImpl, subtract, toBigDecimal, toBigInteger, unaryMinus, unaryPlus, xor, xorImpl
-
-
-
-
Field Detail
-
INSTANCE
public static final FloatingPointMath INSTANCE
-
-
Method Detail
-
absImpl
protected Number absImpl(Number number)
- Specified by:
absImpl
in classNumberMath
-
addImpl
public Number addImpl(Number left, Number right)
- Specified by:
addImpl
in classNumberMath
-
subtractImpl
public Number subtractImpl(Number left, Number right)
- Specified by:
subtractImpl
in classNumberMath
-
multiplyImpl
public Number multiplyImpl(Number left, Number right)
- Specified by:
multiplyImpl
in classNumberMath
-
divideImpl
public Number divideImpl(Number left, Number right)
- Specified by:
divideImpl
in classNumberMath
-
compareToImpl
public int compareToImpl(Number left, Number right)
- Specified by:
compareToImpl
in classNumberMath
-
modImpl
protected Number modImpl(Number left, Number right)
- Overrides:
modImpl
in classNumberMath
-
unaryMinusImpl
protected Number unaryMinusImpl(Number left)
- Specified by:
unaryMinusImpl
in classNumberMath
-
unaryPlusImpl
protected Number unaryPlusImpl(Number left)
- Specified by:
unaryPlusImpl
in classNumberMath
-
-