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()intstatic ComputedDoubleGet the storable value.doublegetValue()voidset(ComputedDouble value) voidsetValue(double value) voidConvert to a displayable string.toString()Methods inherited from class com.storedobject.core.AbstractComputedValue
equals, isComputed, setComputedMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:StorableGet the storable value. By default,Object.toString()is returned.- Specified by:
getStorableValuein interfaceStorable- Returns:
- Storable value as a string.
-
getValue
public double getValue() -
setValue
public void setValue(double value) -
toString
- Overrides:
toStringin classAbstractComputedValue<Double>
-
toDisplay
Description copied from interface:DisplayableConvert to a displayable string. The default implementation returns theStringUtility.toStringInt(Object)value.- Specified by:
toDisplayin interfaceDisplayable- Overrides:
toDisplayin classAbstractComputedValue<Double>- Returns:
- A displayable string.
-
compareTo
- Specified by:
compareToin interfaceComparable<ComputedDouble>
-
clone
- Specified by:
clonein interfaceComputedValue<Double>- Specified by:
clonein classAbstractComputedValue<Double>
-
setValue
- Specified by:
setValuein interfaceComputedValue<Double>
-
getValueObject
- Specified by:
getValueObjectin interfaceComputedValue<Double>
-