Class AbstractDateConverter<D extends java.util.Date>

    • Constructor Detail

      • AbstractDateConverter

        public AbstractDateConverter()
    • Method Detail

      • createDateLike

        protected abstract D createDateLike​(long date)
        Creates a new instance of D out of the passed date(time) as long
        Parameters:
        date - the date(time) in millis since Epoch
        Returns:
        a new instance of the specific type D
      • convertToObject

        public D 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
      • getDateFormat

        public java.text.DateFormat getDateFormat​(java.util.Locale locale)
        Parameters:
        locale -
        Returns:
        Returns the date format.