Constructor and Description |
---|
DateToStringConverter(DateFormat format) |
DateToStringConverter(String pattern) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class sourceClass,
Class destinationClass)
Returns true if this converter can convert instances of sourceClass to
destinationClass.
|
String |
convert(Date source)
Converts instance of S to T.
|
public DateToStringConverter(String pattern)
pattern
- pattern to use for conversionpublic DateToStringConverter(DateFormat format)
format
- DateFormat to use for conversionpublic boolean canConvert(Class sourceClass, Class destinationClass)
Converter
canConvert
in interface Converter<Date,String>
sourceClass
- source ClassdestinationClass
- destination ClassCopyright © 2019 JavaLite. All rights reserved.