public class LongMath extends NumberMath<Long>
Constructor and Description |
---|
LongMath(long i) |
Modifier and Type | Method and Description |
---|---|
Number |
bitwiseAnd(Number right) |
Number |
bitwiseComplement() |
Number |
bitwiseOr(Number right) |
Number |
bitwiseXor(Number right) |
Number |
divide(Number right)
Returns the result of dividing the
this by right . |
Boolean |
equalTo(Number right) |
Boolean |
greaterThan(Number right) |
Boolean |
greaterThanEq(Number right) |
Boolean |
lessThan(Number right) |
Boolean |
lessThanEq(Number right) |
Number |
minus(Number right) |
Boolean |
notEqualTo(Number right) |
Number |
plus(Number right) |
Number |
remainder(Number right)
Returns the result of
this % right . |
Number |
shiftLeft(Number right) |
Number |
signedShiftRight(Number right) |
Number |
times(Number right) |
Number |
unaryMinus() |
Number |
unaryPlus() |
Number |
unsignedShiftRight(Number right) |
getNumberMath, isIntegralZero
public Number plus(Number right)
plus
in class NumberMath<Long>
public Number minus(Number right)
minus
in class NumberMath<Long>
public Number times(Number right)
times
in class NumberMath<Long>
public Number divide(Number right)
NumberMath
this
by right
. If right
is zero
and this is an integer division, null
is returned.divide
in class NumberMath<Long>
public Number remainder(Number right)
NumberMath
this % right
. If right
is zero and this is an integer
remainder, null
is returned.remainder
in class NumberMath<Long>
public Number shiftLeft(Number right)
shiftLeft
in class NumberMath<Long>
public Number signedShiftRight(Number right)
signedShiftRight
in class NumberMath<Long>
public Number unsignedShiftRight(Number right)
unsignedShiftRight
in class NumberMath<Long>
public Number bitwiseAnd(Number right)
bitwiseAnd
in class NumberMath<Long>
public Number bitwiseXor(Number right)
bitwiseXor
in class NumberMath<Long>
public Number bitwiseOr(Number right)
bitwiseOr
in class NumberMath<Long>
public Number unaryPlus()
unaryPlus
in class NumberMath<Long>
public Number unaryMinus()
unaryMinus
in class NumberMath<Long>
public Number bitwiseComplement()
bitwiseComplement
in class NumberMath<Long>
public Boolean equalTo(Number right)
equalTo
in class NumberMath<Long>
public Boolean notEqualTo(Number right)
notEqualTo
in class NumberMath<Long>
public Boolean greaterThan(Number right)
greaterThan
in class NumberMath<Long>
public Boolean greaterThanEq(Number right)
greaterThanEq
in class NumberMath<Long>
public Boolean lessThan(Number right)
lessThan
in class NumberMath<Long>
public Boolean lessThanEq(Number right)
lessThanEq
in class NumberMath<Long>