public class DoubleHolder extends ValueHolder
double
value.Modifier and Type | Field and Description |
---|---|
protected double |
value
The current value.
|
subtype
Constructor and Description |
---|
DoubleHolder()
Construct a new
DoubleHolder with an initial value of
0.0 and default subtype of 0 . |
DoubleHolder(double value)
Construct a new
DoubleHolder with a specified initial
value and default subtype of 0 . |
DoubleHolder(double value,
int subtype)
Construct a new
DoubleHolder with a specified initial
value and subtype. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object other)
Compare this holder object to another.
|
double |
getValue()
Get the
DoubleHolder 's value. |
void |
setValue(double value)
Set the
DoubleHolder 's value. |
String |
toString()
Get a string representation for this object.
|
getSubtype, setSubtype
protected double value
public DoubleHolder()
DoubleHolder
with an initial value of
0.0
and default subtype of 0
.public DoubleHolder(double value)
DoubleHolder
with a specified initial
value and default subtype of 0
.value
- The initial value.public DoubleHolder(double value, int subtype)
DoubleHolder
with a specified initial
value and subtype.value
- The initial value.subtype
- The subtype for this value.public final void setValue(double value)
DoubleHolder
's value.value
- The new value.public final double getValue()
DoubleHolder
's value.public int compareTo(Object other)
compareTo
in interface Comparable
compareTo
in class ValueHolder
other
- The ValueHolder
to compare against.-1
if this object is "less than" the other object;
1
if this object is "greater than" the other object, and
0
if the objects are "equal."WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses