Class AbstractJavaTimeConverter<T extends java.time.temporal.Temporal>

    • Constructor Detail

      • AbstractJavaTimeConverter

        public AbstractJavaTimeConverter()
    • Method Detail

      • createTemporal

        protected abstract T createTemporal​(java.time.temporal.TemporalAccessor temporalAccessor)
        Creates a new instance of D out of the passed date(time) as long
        Parameters:
        temporalAccessor - the date(time) in millis since Epoch
        Returns:
        a new instance of the specific type D
      • convertToObject

        public T convertToObject​(java.lang.String value,
                                 java.util.Locale locale)
        Description copied from interface: IConverter
        Converts the given String value
        Parameters:
        value - The string value to convert
        locale - The locale used to convert the value
        Returns:
        The converted value
      • getDateTimeFormatter

        public java.time.format.DateTimeFormatter getDateTimeFormatter​(java.util.Locale locale)
        Parameters:
        locale -
        Returns:
        Returns the date time format.
      • getDateTimeFormatter

        protected abstract java.time.format.DateTimeFormatter getDateTimeFormatter()