Package com.storedobject.core
Class AbstractComputedValue<T>
java.lang.Object
com.storedobject.core.AbstractComputedValue<T>
- All Implemented Interfaces:
ComputedValue<T>
,Displayable
,Storable
,Cloneable
- Direct Known Subclasses:
AbstractComputedInteger
,ComputedDouble
,ComputedLong
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractComputedValue
<T> clone()
final boolean
final boolean
void
setComputed
(boolean computed) Convert to a displayable string.toString()
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, getValueObject, ignore, ignore, isManual, reverseStatus, setManual, setValue
Methods inherited from interface com.storedobject.common.Storable
getStorableValue
-
Field Details
-
computed
protected boolean computed
-
-
Constructor Details
-
AbstractComputedValue
public AbstractComputedValue()
-
-
Method Details
-
isComputed
public final boolean isComputed()- Specified by:
isComputed
in interfaceComputedValue<T>
-
setComputed
public void setComputed(boolean computed) - Specified by:
setComputed
in interfaceComputedValue<T>
-
equals
-
toString
-
toDisplay
Description copied from interface:Displayable
Convert to a displayable string. The default implementation returns theStringUtility.toStringInt(Object)
value.- Specified by:
toDisplay
in interfaceDisplayable
- Returns:
- A displayable string.
-
clone
- Specified by:
clone
in interfaceComputedValue<T>
- Overrides:
clone
in classObject
-