public class MutableDouble extends Numberimplements Comparable <Number >
Number can change value, so for operations that need to be computed millions of times, recycling 1 object will save a lot of memory allocation.
| Modifier and Type | Class and Description |
|---|---|
static class |
MutableDouble
|
| Modifier and Type | Field and Description |
|---|---|
double |
value
|
| Constructor and Description |
|---|
MutableDouble()
|
MutableDouble(double v)
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Number
|
double |
doubleValue()
|
boolean |
equals(Object
|
float |
floatValue()
|
int |
hashCode()
|
int |
intValue()
|
long |
longValue()
|
String |
toString()
|
byteValue, shortValue