public class DateParameterValueData extends ParameterValueData<Date>
Modifier and Type | Field and Description |
---|---|
private List<Date> |
values |
MAX_DESCRIPTION_LENGTH, MAX_LABEL_LENGTH
Constructor and Description |
---|
DateParameterValueData() |
DateParameterValueData(Date... values) |
Modifier and Type | Method and Description |
---|---|
List<Date> |
getValues()
Get values of this parameter.
|
int |
getValueType()
Get the type of parameter values that are store in this parameter.
|
boolean |
replaceValuesIfDifferent(List<?> values)
Overrides the parent method since we want to get rid of the
time part of the date.
|
boolean |
setSingleValueIfDifferent(Object value)
Overrides the parent method since we want to get rid of the
time part of the date.
|
(package private) void |
setValues(List<Date> values)
Set values of this parameter.
|
String |
toString()
The string will look like
ClassName[id=55] or
ClassName[new] . |
getDescription, getLabel, getOldValues, isMasked, setDescription, setLabel, setMasked, storeCurrentValuesAsOld
equals, getId, getVersion, hashCode, setId, setVersion
public DateParameterValueData()
public DateParameterValueData(Date... values)
public int getValueType()
ParameterValueData
Type.getValue()
values, or 0 if the parameter has no corresponding type.getValueType
in class ParameterValueData<Date>
public List<Date> getValues()
ParameterValueData
getValues
in class ParameterValueData<Date>
void setValues(List<Date> values)
ParameterValueData
NOTE! Used by Hibernate to initialize the object. Do not
call AnnotationData.setLastUpdate(java.util.Date)
!
setValues
in class ParameterValueData<Date>
values
- Collection of values.public boolean replaceValuesIfDifferent(List<?> values)
replaceValuesIfDifferent
in class ParameterValueData<Date>
public boolean setSingleValueIfDifferent(Object value)
setSingleValueIfDifferent
in class ParameterValueData<Date>