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 interface  DateTimeMapper.DateTime
    to 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.String dateHack00​(java.lang.String str)  
    java.util.Optional<ValueMapperInstance<?>> maybeForType​(BindingType bindingType)  
    protected java.time.format.DateTimeFormatter newDateTimeFormatter​(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

      public java.util.Optional<ValueMapperInstance<?>> maybeForType​(BindingType bindingType)
      Specified by:
      maybeForType in interface ValueMapperFactory
    • 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)