|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Number
org.knime.core.util.MutableDouble
public final class MutableDouble
This class is essentially a double whose value can be changed. The hash code and therefore also the equals change dynamically with the value stored. Be patient not to use this object as a key in a hashtable and such.
| Constructor Summary | |
|---|---|
MutableDouble(double i)
Creates a new mutable double. |
|
| Method Summary | |
|---|---|
void |
add(double d)
Adds a value to this object. |
double |
dec()
Decrements this double by one. |
double |
doubleValue()
|
boolean |
equals(Object obj)
|
float |
floatValue()
|
int |
hashCode()
|
double |
inc()
Increments this double by one. |
int |
intValue()
|
long |
longValue()
|
void |
setValue(double newValue)
Sets the value of this double. |
String |
toString()
|
| Methods inherited from class java.lang.Number |
|---|
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MutableDouble(double i)
i - the start value| Method Detail |
|---|
public int intValue()
intValue in class Numberpublic long longValue()
longValue in class Numberpublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic void setValue(double newValue)
newValue - the new valuepublic double inc()
public double dec()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic void add(double d)
d - a double value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||