Package com.storedobject.core
Class AbstractComputedInteger
- All Implemented Interfaces:
ComputedValue<Integer>,Displayable,Storable,Cloneable
- Direct Known Subclasses:
ComputedInteger,ComputedMinute
-
Field Summary
Fields inherited from class com.storedobject.core.AbstractComputedValue
computed -
Constructor Summary
ConstructorsConstructorDescriptionAbstractComputedInteger(int value) AbstractComputedInteger(int value, boolean computed) -
Method Summary
Methods inherited from class com.storedobject.core.AbstractComputedValue
clone, equals, isComputed, setComputed, toDisplay, toStringMethods 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
-
AbstractComputedInteger
public AbstractComputedInteger() -
AbstractComputedInteger
public AbstractComputedInteger(int value) -
AbstractComputedInteger
public AbstractComputedInteger(int value, boolean computed) -
AbstractComputedInteger
-
-
Method Details
-
set
-
getValue
public int getValue() -
setValue
public void setValue(int value) -
compareTo
-
setValue
Description copied from interface:ComputedValueSets the value for the current instance. The provided value may be manually set or used in conjunction with the computed state of the object, depending on other methods and logic in the class.- Parameters:
value- the value to be set for the current instance
-
getValueObject
Description copied from interface:ComputedValueRetrieves the value object associated with this instance.- Returns:
- the value object of type
T.
-
getDBType
-
getStorableValue
Description copied from interface:StorableGet the storable value. By default,Object.toString()is returned.- Returns:
- Storable value as a string.
-