Class StringToDate

  • All Implemented Interfaces:
    Converter<String,​Date>, Function<String,​Date>

    public final class StringToDate
    extends AbstractConverter<String,​Date>
    String to Date converter.

    A String can be converted to Date using:

    • Nothing: different default formats are tested.
    • A DateFormat.
    • A pattern and an optional Locale.
    Author:
    Damien Carbonne
    • Method Detail

      • getFormat

        public DateFormat getFormat()
        Returns:
        The optional format.
      • getPattern

        public String getPattern()
        Returns:
        The optional pattern.
      • getLocale

        public Locale getLocale()
        Returns:
        The optional Locale.
      • getParams

        public Args getParams()
        Returns:
        The parameters used to configure this converter.