Package com.storedobject.core
Class ComputedLong
- All Implemented Interfaces:
ComputedValue<Long>,Displayable,Storable,Cloneable,Comparable<ComputedLong>
-
Field Summary
Fields inherited from class com.storedobject.core.AbstractComputedValue
computed -
Constructor Summary
ConstructorsConstructorDescriptionComputedLong(long value) ComputedLong(long value, boolean computed) ComputedLong(ComputedLong value) -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates and returns a copy of thisComputedValueinstance.intstatic ComputedLongGet the storable value.longgetValue()Retrieves the value object associated with this instance.voidset(ComputedLong value) voidsetValue(long value) voidSets the value for the current instance.Methods inherited from class com.storedobject.core.AbstractComputedValue
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
-
ComputedLong
public ComputedLong() -
ComputedLong
public ComputedLong(long value) -
ComputedLong
public ComputedLong(long value, boolean computed) -
ComputedLong
-
-
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 long getValue() -
setValue
public void setValue(long value) -
compareTo
- Specified by:
compareToin interfaceComparable<ComputedLong>
-
clone
Description copied from interface:ComputedValueCreates and returns a copy of thisComputedValueinstance. The cloned object is a new instance identical to the original, maintaining the same state and value.- Specified by:
clonein interfaceComputedValue<Long>- Specified by:
clonein classAbstractComputedValue<Long>- Returns:
- a new
ComputedValue<T>instance that is a copy of the current object
-
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.- Specified by:
setValuein interfaceComputedValue<Long>- Parameters:
value- the value to be set for the current instance
-
getValueObject
Description copied from interface:ComputedValueRetrieves the value object associated with this instance.- Specified by:
getValueObjectin interfaceComputedValue<Long>- Returns:
- the value object of type
T.
-