Package cdc.converters.defaults
Class LocalDateToString
- java.lang.Object
-
- cdc.converters.AbstractConverter<S,String>
-
- cdc.converters.defaults.AbstractTemporalToString<LocalDate>
-
- cdc.converters.defaults.LocalDateToString
-
-
Field Summary
Fields Modifier and Type Field Description static LocalDateToStringBASIC_ISO_DATE'yyyyMMdd'static LocalDateToStringDASH_DD_MM_YYYY'dd-MM-yyyy'static LocalDateToStringDASH_YYYY_MM_DD'yyyy-MM-dd'static Factory<LocalDateToString>FACTORYstatic LocalDateToStringISO_DATE'yyyy-MM-dd' or 'yyyy-MM-dd+HH:mm'static LocalDateToStringISO_LOCAL_DATE'yyyy-MM-dd'static LocalDateToStringSLASH_DD_MM_YYYY'dd/MM/yyyy'static LocalDateToStringSLASH_YYYY_MM_DD'yyyy/MM/dd'-
Fields inherited from class cdc.converters.defaults.AbstractTemporalToString
FORMATTER, FPARAMS1, FPARAMS2, LOCALE, PATTERN
-
Fields inherited from interface cdc.converters.Converter
META_FARGS, SOURCE_CLASS, TARGET_CLASS
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalDateToStringcreate(String pattern, Locale locale)static LocalDateToStringcreate(DateTimeFormatter formatter)-
Methods inherited from class cdc.converters.defaults.AbstractTemporalToString
apply, factory, getFormatter, getLocale, getParams, getPattern
-
Methods inherited from class cdc.converters.AbstractConverter
getSourceClass, getTargetClass, getWrappedSourceClass, getWrappedTargetClass, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cdc.converters.Converter
adapt, andThen, andThenRaw, applyRaw, areCompliantSourceAndTargetClasses, areMatchingSourceAndTargetClasses, cast, compose, composeRaw, isCompliantSourceClass, isCompliantTargetClass, isMatchingSourceClass, isMatchingTargetClass, orElse, orElseRaw
-
-
-
-
Field Detail
-
BASIC_ISO_DATE
public static final LocalDateToString BASIC_ISO_DATE
'yyyyMMdd'
-
ISO_DATE
public static final LocalDateToString ISO_DATE
'yyyy-MM-dd' or 'yyyy-MM-dd+HH:mm'
-
ISO_LOCAL_DATE
public static final LocalDateToString ISO_LOCAL_DATE
'yyyy-MM-dd'
-
DASH_YYYY_MM_DD
public static final LocalDateToString DASH_YYYY_MM_DD
'yyyy-MM-dd'
-
SLASH_YYYY_MM_DD
public static final LocalDateToString SLASH_YYYY_MM_DD
'yyyy/MM/dd'
-
DASH_DD_MM_YYYY
public static final LocalDateToString DASH_DD_MM_YYYY
'dd-MM-yyyy'
-
SLASH_DD_MM_YYYY
public static final LocalDateToString SLASH_DD_MM_YYYY
'dd/MM/yyyy'
-
FACTORY
public static final Factory<LocalDateToString> FACTORY
-
-
Method Detail
-
create
public static LocalDateToString create(DateTimeFormatter formatter)
-
create
public static LocalDateToString create(String pattern, Locale locale)
-
-