Class ByteMath
- java.lang.Object
-
- org.checkerframework.common.value.util.NumberMath<java.lang.Byte>
-
- org.checkerframework.common.value.util.ByteMath
-
public class ByteMath extends NumberMath<java.lang.Byte>
-
-
Constructor Summary
Constructors Constructor Description ByteMath(byte i)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Number
bitwiseAnd(java.lang.Number right)
java.lang.Number
bitwiseComplement()
java.lang.Number
bitwiseOr(java.lang.Number right)
java.lang.Number
bitwiseXor(java.lang.Number right)
@Nullable java.lang.Number
divide(java.lang.Number right)
Returns the result of dividing thethis
byright
.java.lang.Boolean
equalTo(java.lang.Number right)
java.lang.Boolean
greaterThan(java.lang.Number right)
java.lang.Boolean
greaterThanEq(java.lang.Number right)
java.lang.Boolean
lessThan(java.lang.Number right)
java.lang.Boolean
lessThanEq(java.lang.Number right)
java.lang.Number
minus(java.lang.Number right)
java.lang.Boolean
notEqualTo(java.lang.Number right)
java.lang.Number
plus(java.lang.Number right)
@Nullable java.lang.Number
remainder(java.lang.Number right)
Returns the result ofthis % right
.java.lang.Number
shiftLeft(java.lang.Number right)
java.lang.Number
signedShiftRight(java.lang.Number right)
java.lang.Number
times(java.lang.Number right)
java.lang.Number
unaryMinus()
java.lang.Number
unaryPlus()
java.lang.Number
unsignedShiftRight(java.lang.Number right)
-
Methods inherited from class org.checkerframework.common.value.util.NumberMath
getNumberMath, isIntegralZero
-
-
-
-
Method Detail
-
plus
public java.lang.Number plus(java.lang.Number right)
- Specified by:
plus
in classNumberMath<java.lang.Byte>
-
minus
public java.lang.Number minus(java.lang.Number right)
- Specified by:
minus
in classNumberMath<java.lang.Byte>
-
times
public java.lang.Number times(java.lang.Number right)
- Specified by:
times
in classNumberMath<java.lang.Byte>
-
divide
public @Nullable java.lang.Number divide(java.lang.Number right)
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<java.lang.Byte>
-
remainder
public @Nullable java.lang.Number remainder(java.lang.Number right)
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<java.lang.Byte>
-
shiftLeft
public java.lang.Number shiftLeft(java.lang.Number right)
- Specified by:
shiftLeft
in classNumberMath<java.lang.Byte>
-
signedShiftRight
public java.lang.Number signedShiftRight(java.lang.Number right)
- Specified by:
signedShiftRight
in classNumberMath<java.lang.Byte>
-
unsignedShiftRight
public java.lang.Number unsignedShiftRight(java.lang.Number right)
- Specified by:
unsignedShiftRight
in classNumberMath<java.lang.Byte>
-
bitwiseAnd
public java.lang.Number bitwiseAnd(java.lang.Number right)
- Specified by:
bitwiseAnd
in classNumberMath<java.lang.Byte>
-
bitwiseXor
public java.lang.Number bitwiseXor(java.lang.Number right)
- Specified by:
bitwiseXor
in classNumberMath<java.lang.Byte>
-
bitwiseOr
public java.lang.Number bitwiseOr(java.lang.Number right)
- Specified by:
bitwiseOr
in classNumberMath<java.lang.Byte>
-
unaryPlus
public java.lang.Number unaryPlus()
- Specified by:
unaryPlus
in classNumberMath<java.lang.Byte>
-
unaryMinus
public java.lang.Number unaryMinus()
- Specified by:
unaryMinus
in classNumberMath<java.lang.Byte>
-
bitwiseComplement
public java.lang.Number bitwiseComplement()
- Specified by:
bitwiseComplement
in classNumberMath<java.lang.Byte>
-
equalTo
public java.lang.Boolean equalTo(java.lang.Number right)
- Specified by:
equalTo
in classNumberMath<java.lang.Byte>
-
notEqualTo
public java.lang.Boolean notEqualTo(java.lang.Number right)
- Specified by:
notEqualTo
in classNumberMath<java.lang.Byte>
-
greaterThan
public java.lang.Boolean greaterThan(java.lang.Number right)
- Specified by:
greaterThan
in classNumberMath<java.lang.Byte>
-
greaterThanEq
public java.lang.Boolean greaterThanEq(java.lang.Number right)
- Specified by:
greaterThanEq
in classNumberMath<java.lang.Byte>
-
lessThan
public java.lang.Boolean lessThan(java.lang.Number right)
- Specified by:
lessThan
in classNumberMath<java.lang.Byte>
-
lessThanEq
public java.lang.Boolean lessThanEq(java.lang.Number right)
- Specified by:
lessThanEq
in classNumberMath<java.lang.Byte>
-
-