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
All Methods Static Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
maybeForType
public java.util.Optional<ValueMapperInstance<?>> maybeForType(BindingType bindingType)
- 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)
-
-