|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.indiana.util.MutableDouble
public class MutableDouble
This class is like the Double class, except that it is mutable.
| Constructor Summary | |
|---|---|
protected |
MutableDouble()
|
|
MutableDouble(double value)
Creates new MutableDouble |
| Method Summary | |
|---|---|
double |
doubleValue()
Get the double associated with this MutableDouble. |
boolean |
equals(java.lang.Object other)
|
int |
hashCode()
Unique hashCodes for doubles up to 4 decimal places. |
void |
relativeChange(double delta)
Change the value associated with this object by a specified amount. |
void |
setValue(double newValue)
|
java.lang.String |
toString()
Get a String representation of this MutableDouble. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected MutableDouble()
public MutableDouble(double value)
| Method Detail |
|---|
public void relativeChange(double delta)
public void setValue(double newValue)
public double doubleValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||