|
||||||||||
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 valueMethod Detail |
---|
public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public void setValue(double newValue)
newValue
- the new valuepublic double inc()
public double dec()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void add(double d)
d
- a double value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |