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