Class NumberMath<T extends Number>
java.lang.Object
org.checkerframework.common.value.util.NumberMath<T>
- Direct Known Subclasses:
ByteMath
,DoubleMath
,FloatMath
,IntegerMath
,LongMath
,ShortMath
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Number
bitwiseAnd
(Number right) abstract Number
abstract Number
abstract Number
bitwiseXor
(Number right) Returns the result of dividing thethis
byright
.abstract Boolean
static @Nullable NumberMath
<?> getNumberMath
(Number number) abstract Boolean
greaterThan
(Number right) abstract Boolean
greaterThanEq
(Number right) static boolean
isIntegralZero
(Number number) abstract Boolean
abstract Boolean
lessThanEq
(Number right) abstract Number
abstract Boolean
notEqualTo
(Number right) abstract Number
Returns the result ofthis % right
.abstract Number
abstract Number
signedShiftRight
(Number right) abstract Number
abstract Number
abstract Number
abstract Number
unsignedShiftRight
(Number right)
-
Constructor Details
-
NumberMath
public NumberMath()
-
-
Method Details
-
getNumberMath
-
plus
-
minus
-
times
-
divide
Returns the result of dividing thethis
byright
. Ifright
is zero and this is an integer division,null
is returned. -
remainder
Returns the result ofthis % right
. Ifright
is zero and this is an integer remainder,null
is returned. -
shiftLeft
-
signedShiftRight
-
unsignedShiftRight
-
bitwiseAnd
-
bitwiseOr
-
bitwiseXor
-
unaryPlus
-
unaryMinus
-
bitwiseComplement
-
equalTo
-
notEqualTo
-
greaterThan
-
greaterThanEq
-
lessThan
-
lessThanEq
-
isIntegralZero
-