@Order(value = 1) @CompileStatic class MultiFormatDateConverter extends Object
Used for binding date properties from string So if property is Date and the value that should be bind to it is string, then it will be converted by default before binding
Type | Name and description |
---|---|
boolean |
allowEmpty allowEmpty = true(default) empty string will get set to null, if false then empty string throws IllegalArgumentException gets thrown in that case. |
String[] |
formats |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
canConvert(Object value) |
|
Object |
convert(Object value) Converts input string to date format based on formats |
|
Class<?> |
getTargetType() The type converter should be applied to |
allowEmpty = true(default) empty string will get set to null, if false then empty string throws IllegalArgumentException gets thrown in that case.