Package com.storedobject.core
Class ComputedDouble
- All Implemented Interfaces:
ComputedValue<Double>
,Displayable
,Storable
,Cloneable
,Comparable<ComputedDouble>
public class ComputedDouble
extends AbstractComputedValue<Double>
implements Comparable<ComputedDouble>
-
Field Summary
Fields inherited from class com.storedobject.core.AbstractComputedValue
computed
-
Constructor Summary
ConstructorsConstructorDescriptionComputedDouble
(double value) ComputedDouble
(double value, boolean computed) ComputedDouble
(ComputedDouble value) -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
static ComputedDouble
Get the storable value.double
getValue()
void
set
(ComputedDouble value) void
setValue
(double value) void
Convert to a displayable string.toString()
Methods inherited from class com.storedobject.core.AbstractComputedValue
equals, isComputed, setComputed
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.storedobject.common.ComputedValue
consider, consider, enable, ignore, ignore, isManual, reverseStatus, setManual
-
Constructor Details
-
ComputedDouble
public ComputedDouble() -
ComputedDouble
public ComputedDouble(double value) -
ComputedDouble
public ComputedDouble(double value, boolean computed) -
ComputedDouble
-
-
Method Details
-
create
-
set
-
getStorableValue
Description copied from interface:Storable
Get the storable value. By default,Object.toString()
is returned.- Specified by:
getStorableValue
in interfaceStorable
- Returns:
- Storable value as a string.
-
getValue
public double getValue() -
setValue
public void setValue(double value) -
toString
- Overrides:
toString
in classAbstractComputedValue<Double>
-
toDisplay
Description copied from interface:Displayable
Convert to a displayable string. The default implementation returns theStringUtility.toStringInt(Object)
value.- Specified by:
toDisplay
in interfaceDisplayable
- Overrides:
toDisplay
in classAbstractComputedValue<Double>
- Returns:
- A displayable string.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ComputedDouble>
-
clone
- Specified by:
clone
in interfaceComputedValue<Double>
- Specified by:
clone
in classAbstractComputedValue<Double>
-
setValue
- Specified by:
setValue
in interfaceComputedValue<Double>
-
getValueObject
- Specified by:
getValueObject
in interfaceComputedValue<Double>
-