Class ParameterConverters.DateConverter

    • Field Detail

      • DEFAULT_FORMAT

        public static final DateFormat DEFAULT_FORMAT
    • Constructor Detail

      • DateConverter

        public DateConverter()
      • DateConverter

        public DateConverter​(DateFormat dateFormat)
    • Method Detail

      • convertValue

        public Date convertValue​(String value,
                                 Type type)
        Description copied from interface: ParameterConverters.ParameterConverter
        Convert the value from one type to another, for example from a boolean to a String.
        Parameters:
        value - the value to be converted
        type - the type descriptor that supplies extra information about the requested result type
        Returns:
        the converted value