public class DateToStringConverter extends BidirectionalConverter<Date,String>
SimpleDateFormat.BidirectionalConverter.Reversed<S,D>destinationType, mapperFacade, sourceType| Constructor and Description |
|---|
DateToStringConverter(String format)
Constructs a new instance of DateToStringConverter capable of parsing and
constructing Date strings according to the provided format.
|
DateToStringConverter(String format,
Locale locale)
Constructs a new instance of DateToStringConverter with given locale
|
| Modifier and Type | Method and Description |
|---|---|
Date |
convertFrom(String source,
Type<Date> destinationType,
MappingContext context) |
String |
convertTo(Date source,
Type<String> destinationType,
MappingContext context) |
boolean |
equals(Object o) |
canConvert, convert, reverse, toStringgetAType, getBType, hashCode, setMapperFacadeclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetMapperFacadegetAType, getBTypepublic DateToStringConverter(String format)
format - the format descriptor, processed according to the rules
defined in SimpleDateFormatpublic String convertTo(Date source, Type<String> destinationType, MappingContext context)
convertTo in class BidirectionalConverter<Date,String>public Date convertFrom(String source, Type<Date> destinationType, MappingContext context)
convertFrom in class BidirectionalConverter<Date,String>public boolean equals(Object o)
equals in class CustomConverter<Object,Object>Copyright © 2016 Glasnost. All rights reserved.