abstract class Jsr310ConvertersConfiguration.Jsr310DateValueConverter<T> extends java.lang.Object implements ValueConverter
| Constructor and description |
|---|
Jsr310ConvertersConfiguration.Jsr310DateValueConverter() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
canConvert(java.lang.Object value) |
|
T |
convert(java.lang.Object value, Closure callable)Converts a value with the first of the configured date formats that reads it. |
|
T |
convert(java.lang.Object value, java.time.format.DateTimeFormatter iso, Closure callable)Converts a value in the ISO 8601 form of the type, which is how Grails renders it in JSON, or else with the first of the configured date formats that reads it. |
|
abstract java.lang.Class<?> |
getTargetType() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Converts a value with the first of the configured date formats that reads it.
callable - parses the value with the date format pattern it is given, a StringConverts a value in the ISO 8601 form of the type, which is how Grails renders it in JSON, or else with the first of the configured date formats that reads it.
iso - the ISO 8601 formatter of the typecallable - parses the value with the java.time.format.DateTimeFormatter it is given, the ISO 8601 one or
one for a configured date format