Class IntegerMath
java.lang.Object
org.checkerframework.common.value.util.NumberMath<Integer>
org.checkerframework.common.value.util.IntegerMath
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbitwiseAnd
(Number right) bitwiseXor
(Number right) Returns the result of dividing thethis
byright
.greaterThan
(Number right) greaterThanEq
(Number right) lessThanEq
(Number right) notEqualTo
(Number right) Returns the result ofthis % right
.signedShiftRight
(Number right) unsignedShiftRight
(Number right) Methods inherited from class org.checkerframework.common.value.util.NumberMath
getNumberMath, isIntegralZero
-
Constructor Details
-
IntegerMath
public IntegerMath(int i)
-
-
Method Details
-
plus
- Specified by:
plus
in classNumberMath<Integer>
-
minus
- Specified by:
minus
in classNumberMath<Integer>
-
times
- Specified by:
times
in classNumberMath<Integer>
-
divide
Description copied from class:NumberMath
Returns the result of dividing thethis
byright
. Ifright
is zero and this is an integer division,null
is returned.- Specified by:
divide
in classNumberMath<Integer>
-
remainder
Description copied from class:NumberMath
Returns the result ofthis % right
. Ifright
is zero and this is an integer remainder,null
is returned.- Specified by:
remainder
in classNumberMath<Integer>
-
shiftLeft
- Specified by:
shiftLeft
in classNumberMath<Integer>
-
signedShiftRight
- Specified by:
signedShiftRight
in classNumberMath<Integer>
-
unsignedShiftRight
- Specified by:
unsignedShiftRight
in classNumberMath<Integer>
-
bitwiseAnd
- Specified by:
bitwiseAnd
in classNumberMath<Integer>
-
bitwiseXor
- Specified by:
bitwiseXor
in classNumberMath<Integer>
-
bitwiseOr
- Specified by:
bitwiseOr
in classNumberMath<Integer>
-
unaryPlus
- Specified by:
unaryPlus
in classNumberMath<Integer>
-
unaryMinus
- Specified by:
unaryMinus
in classNumberMath<Integer>
-
bitwiseComplement
- Specified by:
bitwiseComplement
in classNumberMath<Integer>
-
equalTo
- Specified by:
equalTo
in classNumberMath<Integer>
-
notEqualTo
- Specified by:
notEqualTo
in classNumberMath<Integer>
-
greaterThan
- Specified by:
greaterThan
in classNumberMath<Integer>
-
greaterThanEq
- Specified by:
greaterThanEq
in classNumberMath<Integer>
-
lessThan
- Specified by:
lessThan
in classNumberMath<Integer>
-
lessThanEq
- Specified by:
lessThanEq
in classNumberMath<Integer>
-