@NotThreadSafe public final class MutableDouble extends AbstractMutableNumeric<MutableDouble>
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_VALUE
The default value if the default constructor is used.
|
| Constructor and Description |
|---|
MutableDouble()
Initialize with default value 0.0
|
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() |
boolean |
equals(Object o) |
float |
floatValue() |
MutableDouble |
getClone() |
int |
hashCode() |
double |
inc()
Increment by 1 and return the modified value.
|
double |
inc(double dDelta) |
double |
inc(Number aDelta) |
int |
intValue() |
boolean |
is0() |
boolean |
isGreater0() |
boolean |
isGreaterOrEqual0() |
boolean |
isNot0() |
boolean |
isSmaller0() |
boolean |
isSmallerOrEqual0() |
long |
longValue() |
double |
multiply(double dMultiplicand) |
double |
multiply(Number aMultiplicand) |
EChange |
set(double dValue) |
EChange |
set(Number aValue) |
String |
toString() |
getAsBigDecimal, getAsBigInteger, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShortbyteValue, shortValuepublic static final double DEFAULT_VALUE
public MutableDouble()
public MutableDouble(double dValue)
public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic 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 isNot0()
true if the value is not 0public boolean isSmaller0()
true if the value is < 0public boolean isSmallerOrEqual0()
true if the value is ≤ 0public boolean isGreater0()
true if the value is > 0public boolean isGreaterOrEqual0()
true if the value is ≥ 0public int compareTo(@Nonnull MutableDouble rhs)
@Nonnull public MutableDouble getClone()
Copyright © 2014–2015 Philip Helger. All rights reserved.