Package ch.kk7.confij.binding.values
Class DateTimeMapper
java.lang.Object
ch.kk7.confij.binding.values.DateTimeMapper
- All Implemented Interfaces:
ValueMapperFactory
public class DateTimeMapper extends java.lang.Object implements ValueMapperFactory
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDateTimeMapper.DateTimeto be put on any of the supported Temporal types to define the format of the string to be parsed. -
Constructor Summary
Constructors Constructor Description DateTimeMapper() -
Method Summary
Modifier and Type Method Description protected static java.lang.StringdateHack00(java.lang.String str)java.util.Optional<ValueMapperInstance<?>>maybeForType(BindingType bindingType)protected java.time.format.DateTimeFormatternewDateTimeFormatter(BindingType bindingType, java.time.format.DateTimeFormatter defaultFormatter)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DateTimeMapper
public DateTimeMapper()
-
-
Method Details
-
maybeForType
- Specified by:
maybeForTypein interfaceValueMapperFactory
-
dateHack00
protected static java.lang.String dateHack00(java.lang.String str) -
newDateTimeFormatter
protected java.time.format.DateTimeFormatter newDateTimeFormatter(BindingType bindingType, java.time.format.DateTimeFormatter defaultFormatter)
-