public class UtilDateType extends DateType
| Modifier and Type | Field and Description |
|---|---|
boolean |
EMPLOY_SIMPLE_Format
represent the type employs SimpleDateFormat as [SIMPLE_DATE_FORMATTER]
|
DATE_FORMATTER, day, hour, millisecond, minute, month, second, SIMPLE_DATE_FORMATTER, timezone, yeardepth, spec| Constructor and Description |
|---|
UtilDateType(JavaDtoSpec spec) |
UtilDateType(JavaDtoSpec spec,
boolean employSimpleFormat) |
UtilDateType(String type,
String fullTypeName,
Class<?> clazz,
boolean simpleFormat,
JavaDtoSpec spec) |
UtilDateType(String type,
String fullTypeName,
Class<?> clazz,
JavaDtoSpec spec,
boolean employSimpleFormat)
DateType with simpleFormat
|
UtilDateType(String type,
String fullTypeName,
Class<?> clazz,
JavaDtoSpec spec,
List<IntParam> dateFields,
boolean simpleFormat) |
| Modifier and Type | Method and Description |
|---|---|
UtilDateType |
copy() |
Date |
getDateInstance(List<IntParam> values) |
long |
getDateLong(List<IntParam> values) |
String |
getDateString(List<IntParam> values) |
TypeDto |
getDto() |
List<IntParam> |
getIntValues(Object date)
extract value of fields based on the date instance
|
formatZZZZ, getDateFields, setDateFieldsgetClazz, getFullTypeName, getFullTypeNameWithGenericType, getSimpleTypeName, getTypeNameForInstanceInJavaOrKotlin, sameType, setOriginalTypepublic final boolean EMPLOY_SIMPLE_Format
public UtilDateType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec, List<IntParam> dateFields, boolean simpleFormat)
public UtilDateType(String type, String fullTypeName, Class<?> clazz, boolean simpleFormat, JavaDtoSpec spec)
public UtilDateType(String type, String fullTypeName, Class<?> clazz, JavaDtoSpec spec, boolean employSimpleFormat)
type - is the type namefullTypeName - is the full type nameclazz - is the class representing the typespec - is dto specificationemploySimpleFormat - public UtilDateType(JavaDtoSpec spec, boolean employSimpleFormat)
public UtilDateType(JavaDtoSpec spec)
public String getDateString(List<IntParam> values)
getDateString in class DateTypevalues - are a list of values for the datepublic Date getDateInstance(List<IntParam> values)
getDateInstance in class DateTypevalues - are a list of values for the datepublic List<IntParam> getIntValues(Object date)
DateTypegetIntValues in class DateTypedate - is an instance of Date, eg, java.util.Date or java.time.LocalDatepublic long getDateLong(List<IntParam> values)
getDateLong in class DateTypepublic TypeDto getDto()
getDto in class TypeSchemapublic UtilDateType copy()
copy in class TypeSchemaCopyright © 2016–2023. All rights reserved.