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 ComputedDate
boolean
Get the storable value.boolean
void
set
(ComputedDate value) void
setComputed
(boolean computed) void
Convert to a displayable string.toString()
Methods inherited from class java.sql.Date
getHours, getMinutes, getSeconds, setHours, setMinutes, setSeconds, setTime, toInstant, toLocalDate, valueOf, valueOf
Methods inherited from class java.util.Date
after, before, compareTo, from, getDate, getDay, getMonth, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setMonth, setYear, toGMTString, toLocaleString, UTC
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getValueObject
in interfaceComputedValue<Date>
-
setValue
- Specified by:
setValue
in interfaceComputedValue<Date>
-
getStorableValue
Description copied from interface:Storable
Get the storable value. By default,Object.toString()
is returned.- Specified by:
getStorableValue
in interfaceStorable
- Returns:
- Storable value as a string.
-
isComputed
public boolean isComputed()- Specified by:
isComputed
in interfaceComputedValue<Date>
-
setComputed
public void setComputed(boolean computed) - Specified by:
setComputed
in interfaceComputedValue<Date>
-
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.
-
equals
-
clone
- Specified by:
clone
in interfaceComputedValue<Date>
- Overrides:
clone
in classDate
-