public static class ParameterConverters.DateConverter extends Object implements ParameterConverters.ParameterConverter
Date
using an injectable DateFormat
(defaults to new SimpleDateFormat("dd/MM/yyyy"))Modifier and Type | Field and Description |
---|---|
static DateFormat |
DEFAULT_FORMAT |
Constructor and Description |
---|
DateConverter() |
DateConverter(DateFormat dateFormat) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Type type) |
Object |
convertValue(String value,
Type type) |
public static final DateFormat DEFAULT_FORMAT
public DateConverter()
public DateConverter(DateFormat dateFormat)
public boolean accept(Type type)
accept
in interface ParameterConverters.ParameterConverter
public Object convertValue(String value, Type type)
convertValue
in interface ParameterConverters.ParameterConverter
Copyright © 2003–2016. All rights reserved.