kiwi.util
Class DoubleHolder
java.lang.Object
|
+--kiwi.util.DoubleHolder
- public class DoubleHolder
- extends Object
A mutable holder for a double
value.
- Version:
- 1.0 (11/98)
- Author:
- Mark Lindner, PING Software Group
Field Summary |
protected double |
value
The current value. |
Constructor Summary |
DoubleHolder()
Construct a new DoubleHolder with an initial value of 0. |
DoubleHolder(double value)
Construct a new DoubleHolder with a specified initial
value. |
Method Summary |
double |
getValue()
Get the DoubleHolder 's value. |
void |
setValue(double value)
Set the DoubleHolder 's value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
value
protected double value
- The current value.
DoubleHolder
public DoubleHolder()
- Construct a new
DoubleHolder
with an initial value of 0.
DoubleHolder
public DoubleHolder(double value)
- Construct a new
DoubleHolder
with a specified initial
value.
- Parameters:
value
- The initial value.
setValue
public final void setValue(double value)
- Set the
DoubleHolder
's value.
- Parameters:
value
- The new value.
getValue
public final double getValue()
- Get the
DoubleHolder
's value.
- Returns:
- The current value.