Package com.storedobject.core
Class ComputedDate
java.lang.Object
java.util.Date
java.sql.Date
com.storedobject.core.ComputedDate
- All Implemented Interfaces:
ComputedValue<Date>,Displayable,Storable,Serializable,Cloneable,Comparable<Date>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionComputedDate(long date) ComputedDate(long date, boolean computed) ComputedDate(ComputedDate date) ComputedDate(Date date) ComputedDate(Date date, boolean computed) -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComputedDatebooleanGet the storable value.booleanvoidset(ComputedDate value) voidsetComputed(boolean computed) voidConvert to a displayable string.toString()Methods inherited from class java.sql.Date
getHours, getMinutes, getSeconds, setHours, setMinutes, setSeconds, setTime, toInstant, toLocalDate, valueOf, valueOfMethods inherited from class java.util.Date
after, before, compareTo, from, getDate, getDay, getMonth, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setMonth, setYear, toGMTString, toLocaleString, UTCMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.storedobject.common.ComputedValue
consider, consider, enable, ignore, ignore, isManual, reverseStatus, setManual
-
Constructor Details
-
ComputedDate
public ComputedDate() -
ComputedDate
-
ComputedDate
-
ComputedDate
public ComputedDate(long date) -
ComputedDate
public ComputedDate(long date, boolean computed) -
ComputedDate
-
-
Method Details
-
create
-
set
-
getValueObject
- Specified by:
getValueObjectin interfaceComputedValue<Date>
-
setValue
- Specified by:
setValuein interfaceComputedValue<Date>
-
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.
-
isComputed
public boolean isComputed()- Specified by:
isComputedin interfaceComputedValue<Date>
-
setComputed
public void setComputed(boolean computed) - Specified by:
setComputedin interfaceComputedValue<Date>
-
toString
-
toDisplay
Description copied from interface:DisplayableConvert to a displayable string. The default implementation returns theStringUtility.toStringInt(Object)value.- Specified by:
toDisplayin interfaceDisplayable- Returns:
- A displayable string.
-
equals
-
clone
- Specified by:
clonein interfaceComputedValue<Date>- Overrides:
clonein classDate
-