Class AbstractJavaTimeConverter<T extends Temporal>

    • Constructor Detail

      • AbstractJavaTimeConverter

        public AbstractJavaTimeConverter()
    • Method Detail

      • createTemporal

        protected abstract T createTemporal​(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​(String value,
                                 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 DateTimeFormatter getDateTimeFormatter​(Locale locale)
        Parameters:
        locale -
        Returns:
        Returns the date time format.