public class DateParameterValueData extends ParameterValueData<java.util.Date>
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.util.Date> |
values |
MAX_DESCRIPTION_LENGTH, MAX_LABEL_LENGTH
Constructor and Description |
---|
DateParameterValueData() |
DateParameterValueData(java.util.Date... values) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.Date> |
getValues()
Get values of this parameter.
|
int |
getValueType()
Get the type of parameter values that are store in this parameter.
|
boolean |
replaceValuesIfDifferent(java.util.List<?> values,
boolean checkOnly)
Overrides the parent method since we need date-specific equals
and we want to get rid of the time part of the date.
|
(package private) void |
setValues(java.util.List<java.util.Date> values)
Set values of this parameter.
|
java.lang.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(java.util.Date... values)
public int getValueType()
ParameterValueData
Type.getValue()
values, or 0 if the parameter has no corresponding type.getValueType
in class ParameterValueData<java.util.Date>
public java.util.List<java.util.Date> getValues()
ParameterValueData
getValues
in class ParameterValueData<java.util.Date>
void setValues(java.util.List<java.util.Date> values)
ParameterValueData
NOTE! Used by Hibernate to initialize the object. Do not
call AnnotationData.setLastUpdate(java.util.Date)
!
setValues
in class ParameterValueData<java.util.Date>
values
- Collection of values.public boolean replaceValuesIfDifferent(java.util.List<?> values, boolean checkOnly)
replaceValuesIfDifferent
in class ParameterValueData<java.util.Date>
checkOnly
- Only check the values, do not replace them even if they are different