java.lang.Object
org.litebridge.convert.converter.DateConverter
- All Implemented Interfaces:
Converter<Date>,ConverterFunction<Date>
A converter that converts various date/time types to
Date.-
Field Summary
Fields inherited from interface org.litebridge.convert.converter.Converter
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.litebridge.convert.converter.Converter
primitiveType, priority
-
Constructor Details
-
DateConverter
public DateConverter()
-
-
Method Details
-
convert
Description copied from interface:ConverterFunctionConverts the given value to the target type.- Specified by:
convertin interfaceConverterFunction<Date>- Parameters:
value- the value to convert, may benull- Returns:
- the converted value, or
nullif the input wasnullor could not be converted
-
type
Description copied from interface:ConverterReturns the target Java class this converter handles.
-