@NotThreadSafe public class MutableDouble extends AbstractMutableNumeric<MutableDouble>
| Constructor and Description |
|---|
MutableDouble(double dValue) |
MutableDouble(Number aValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MutableDouble rhs) |
double |
dec() |
double |
dec(double dDelta) |
double |
dec(Number aDelta) |
double |
divide(double dDivisor) |
double |
divide(Number aDivisor) |
double |
doubleValue()
Returns the value of the specified number as a
double, which may
involve rounding. |
boolean |
equals(Object o) |
float |
floatValue()
Returns the value of the specified number as a
float, which may
involve rounding. |
MutableDouble |
getClone() |
int |
hashCode() |
double |
inc()
Increment by 1 and return the modified value.
|
double |
inc(double dDelta) |
double |
inc(Number aDelta) |
int |
intValue()
Returns the value of the specified number as an
int, which may
involve rounding or truncation. |
boolean |
is0() |
boolean |
isGE0() |
boolean |
isGT0() |
boolean |
isLE0() |
boolean |
isLT0() |
long |
longValue()
Returns the value of the specified number as a
long, which may
involve rounding or truncation. |
double |
multiply(double dMultiplicand) |
double |
multiply(Number aMultiplicand) |
EChange |
set(double dValue) |
EChange |
set(Number aValue) |
String |
toString() |
onAfterChangebyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsBigDecimal, getAsBigInteger, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, isNot0isEQ, isGE, isGT, isLE, isLT, isNEthisAsTbyteValue, shortValuepublic double doubleValue()
INumberdouble, which may
involve rounding.doubleValue in interface INumberdoubleValue in class Numberdouble.public float floatValue()
INumberfloat, which may
involve rounding.floatValue in interface INumberfloatValue in class Numberfloat.public int intValue()
INumberint, which may
involve rounding or truncation.public long longValue()
INumberlong, which may
involve rounding or truncation.public double inc()
public double inc(double dDelta)
public double dec()
public double dec(double dDelta)
public double divide(double dDivisor)
public double multiply(double dMultiplicand)
public boolean is0()
true if the value is 0public boolean isLT0()
true if the value is < 0public boolean isLE0()
true if the value is ≤ 0public boolean isGT0()
true if the value is > 0public boolean isGE0()
true if the value is ≥ 0public int compareTo(@Nonnull MutableDouble rhs)
@Nonnull public MutableDouble getClone()
Copyright © 2014–2020 Philip Helger. All rights reserved.