@NotThreadSafe public final class MutableDouble extends Number implements IMutableNumeric<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(Double aValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MutableDouble rhs) |
double |
dec() |
double |
dec(double dDelta) |
double |
doubleValue() |
boolean |
equals(Object o) |
float |
floatValue() |
Double |
getAsDouble() |
MutableDouble |
getClone() |
int |
hashCode() |
double |
inc()
Increment by 1 and return the modified value.
|
double |
inc(double dDelta) |
int |
intValue() |
boolean |
is0() |
boolean |
isGreater0() |
boolean |
isGreaterOrEqual0() |
boolean |
isNot0() |
boolean |
isSmaller0() |
boolean |
isSmallerOrEqual0() |
long |
longValue() |
EChange |
set(double dValue) |
String |
toString() |
byteValue, 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 boolean is0()
is0 in interface IMutableNumeric<MutableDouble>true if the value is 0public boolean isNot0()
isNot0 in interface IMutableNumeric<MutableDouble>true if the value is not 0public boolean isSmaller0()
isSmaller0 in interface IMutableNumeric<MutableDouble>true if the value is < 0public boolean isSmallerOrEqual0()
isSmallerOrEqual0 in interface IMutableNumeric<MutableDouble>true if the value is ≤ 0public boolean isGreater0()
isGreater0 in interface IMutableNumeric<MutableDouble>true if the value is > 0public boolean isGreaterOrEqual0()
isGreaterOrEqual0 in interface IMutableNumeric<MutableDouble>true if the value is ≥ 0public int compareTo(@Nonnull MutableDouble rhs)
compareTo in interface Comparable<MutableDouble>@Nonnull public MutableDouble getClone()
getClone in interface ICloneable<MutableDouble>Copyright © 2006–2015 phloc systems. All rights reserved.