com.sun.electric.database.geometry
Class GenMath.MutableDouble

java.lang.Object
  extended by com.sun.electric.database.geometry.GenMath.MutableDouble
Enclosing class:
GenMath

public static class GenMath.MutableDouble
extends java.lang.Object

Class to define an Double-like object that can be modified.


Constructor Summary
GenMath.MutableDouble(double value)
          Constructor creates a MutableDouble object with an initial value.
 
Method Summary
 double doubleValue()
          Method to return the value of this MutableDouble.
 void setValue(double value)
          Method to change the value of this MutableDouble.
 java.lang.String toString()
          Returns a printable version of this MutableDouble.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenMath.MutableDouble

public GenMath.MutableDouble(double value)
Constructor creates a MutableDouble object with an initial value.

Parameters:
value - the initial value.
Method Detail

setValue

public void setValue(double value)
Method to change the value of this MutableDouble.

Parameters:
value - the new value.

doubleValue

public double doubleValue()
Method to return the value of this MutableDouble.

Returns:
the current value of this MutableDouble.

toString

public java.lang.String toString()
Returns a printable version of this MutableDouble.

Overrides:
toString in class java.lang.Object
Returns:
a printable version of this MutableDouble.