public class DateConverter extends Object implements AttributeConverter<Date>
Modifier and Type | Field and Description |
---|---|
protected String |
format |
protected Locale |
locale |
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
DateConverter(String format) |
DateConverter(String format,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
Date |
convert(Object attribute)
Convert an attribute to a specific type T.
|
protected static final org.slf4j.Logger logger
protected String format
protected Locale locale
public DateConverter(String format)
public Date convert(Object attribute)
AttributeConverter
convert
in interface AttributeConverter<Date>
attribute
- attributeCopyright © 2015. All Rights Reserved.