public final class MutableDouble extends Number implements Comparable<MutableDouble>
Constructor and Description |
---|
MutableDouble() |
MutableDouble(double d) |
MutableDouble(Number num) |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue() |
int |
compareTo(MutableDouble anotherMutableDouble)
Compares two
MutableDouble objects numerically. |
double |
doubleValue() |
boolean |
equals(Object obj)
Compares this object to the specified object.
|
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
void |
set(double d) |
short |
shortValue() |
String |
toString() |
public MutableDouble()
public MutableDouble(double d)
public MutableDouble(Number num)
public void set(double d)
public boolean equals(Object obj)
true
if and only if the argument is not
null
and is an MutableDouble
object that
contains the same double
value as this object.
Note that a MutableDouble isn't and can't be equal to an Double.public int compareTo(MutableDouble anotherMutableDouble)
MutableDouble
objects numerically.compareTo
in interface Comparable<MutableDouble>
anotherMutableDouble
- the MutableDouble
to be
compared.0
if this MutableDouble
is
equal to the argument MutableDouble
; a value less than
0
if this MutableDouble
is numerically less
than the argument MutableDouble
; and a value greater
than 0
if this MutableDouble
is numerically
greater than the argument MutableDouble
(signed
comparison).public short shortValue()
shortValue
in class Number
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number