Class DateStringConverter
java.lang.Object
de.muehlencord.shared.configuration.converter.DateStringConverter
- All Implemented Interfaces:
StringConverter<Date>
- Author:
- Joern Muehlencord (joern@muehlencord.de)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DateStringConverter
public DateStringConverter()
-
-
Method Details
-
toString
Converter a parameter object to a string representation- Specified by:
toStringin interfaceStringConverter<Date>- Parameters:
d- the parameter value to convert- Returns:
- the parameter value as string
-
fromString
Converter a string to date- Specified by:
fromStringin interfaceStringConverter<Date>- Parameters:
s- string representation of a parameter value to convert to an object- Returns:
- the parameter value as date
- Throws:
ConverterException- if the conversion fails
-