static final class Numbers.LongOps extends java.lang.Object implements Numbers.Ops
Constructor and Description |
---|
Numbers.LongOps() |
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
add(java.lang.Number x,
java.lang.Number y) |
java.lang.Number |
addP(java.lang.Number x,
java.lang.Number y) |
Numbers.Ops |
combine(Numbers.Ops y) |
java.lang.Number |
dec(java.lang.Number x) |
java.lang.Number |
decP(java.lang.Number x) |
java.lang.Number |
divide(java.lang.Number x,
java.lang.Number y) |
boolean |
equiv(java.lang.Number x,
java.lang.Number y) |
(package private) static long |
gcd(long u,
long v) |
java.lang.Number |
inc(java.lang.Number x) |
java.lang.Number |
incP(java.lang.Number x) |
boolean |
isNeg(java.lang.Number x) |
boolean |
isPos(java.lang.Number x) |
boolean |
isZero(java.lang.Number x) |
boolean |
lt(java.lang.Number x,
java.lang.Number y) |
java.lang.Number |
multiply(java.lang.Number x,
java.lang.Number y) |
java.lang.Number |
multiplyP(java.lang.Number x,
java.lang.Number y) |
java.lang.Number |
negate(java.lang.Number x) |
java.lang.Number |
negateP(java.lang.Number x) |
Numbers.Ops |
opsWith(Numbers.BigDecimalOps x) |
Numbers.Ops |
opsWith(Numbers.BigIntOps x) |
Numbers.Ops |
opsWith(Numbers.DoubleOps x) |
Numbers.Ops |
opsWith(Numbers.LongOps x) |
Numbers.Ops |
opsWith(Numbers.RatioOps x) |
java.lang.Number |
quotient(java.lang.Number x,
java.lang.Number y) |
java.lang.Number |
remainder(java.lang.Number x,
java.lang.Number y) |
public Numbers.Ops combine(Numbers.Ops y)
combine
in interface Numbers.Ops
public final Numbers.Ops opsWith(Numbers.LongOps x)
opsWith
in interface Numbers.Ops
public final Numbers.Ops opsWith(Numbers.DoubleOps x)
opsWith
in interface Numbers.Ops
public final Numbers.Ops opsWith(Numbers.RatioOps x)
opsWith
in interface Numbers.Ops
public final Numbers.Ops opsWith(Numbers.BigIntOps x)
opsWith
in interface Numbers.Ops
public final Numbers.Ops opsWith(Numbers.BigDecimalOps x)
opsWith
in interface Numbers.Ops
public boolean isZero(java.lang.Number x)
isZero
in interface Numbers.Ops
public boolean isPos(java.lang.Number x)
isPos
in interface Numbers.Ops
public boolean isNeg(java.lang.Number x)
isNeg
in interface Numbers.Ops
public final java.lang.Number add(java.lang.Number x, java.lang.Number y)
add
in interface Numbers.Ops
public final java.lang.Number addP(java.lang.Number x, java.lang.Number y)
addP
in interface Numbers.Ops
public final java.lang.Number multiply(java.lang.Number x, java.lang.Number y)
multiply
in interface Numbers.Ops
public final java.lang.Number multiplyP(java.lang.Number x, java.lang.Number y)
multiplyP
in interface Numbers.Ops
static long gcd(long u, long v)
public java.lang.Number divide(java.lang.Number x, java.lang.Number y)
divide
in interface Numbers.Ops
public java.lang.Number quotient(java.lang.Number x, java.lang.Number y)
quotient
in interface Numbers.Ops
public java.lang.Number remainder(java.lang.Number x, java.lang.Number y)
remainder
in interface Numbers.Ops
public boolean equiv(java.lang.Number x, java.lang.Number y)
equiv
in interface Numbers.Ops
public boolean lt(java.lang.Number x, java.lang.Number y)
lt
in interface Numbers.Ops
public final java.lang.Number negate(java.lang.Number x)
negate
in interface Numbers.Ops
public final java.lang.Number negateP(java.lang.Number x)
negateP
in interface Numbers.Ops
public java.lang.Number inc(java.lang.Number x)
inc
in interface Numbers.Ops
public java.lang.Number incP(java.lang.Number x)
incP
in interface Numbers.Ops
public java.lang.Number dec(java.lang.Number x)
dec
in interface Numbers.Ops
public java.lang.Number decP(java.lang.Number x)
decP
in interface Numbers.Ops