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