class JavaTimeArgumentConverter extends AnnotationBasedArgumentConverter<JavaTimeConversionPattern>
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<java.lang.Class<?>,java.time.temporal.TemporalQuery<?>> |
TEMPORAL_QUERIES |
| Constructor and Description |
|---|
JavaTimeArgumentConverter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
convert(java.lang.Object input,
java.lang.Class<?> targetClass,
JavaTimeConversionPattern annotation)
Convert the supplied
source object into the supplied targetType,
based on metadata in the provided annotation. |
accept, convertprivate static final java.util.Map<java.lang.Class<?>,java.time.temporal.TemporalQuery<?>> TEMPORAL_QUERIES
protected java.lang.Object convert(java.lang.Object input,
java.lang.Class<?> targetClass,
JavaTimeConversionPattern annotation)
AnnotationBasedArgumentConvertersource object into the supplied targetType,
based on metadata in the provided annotation.convert in class AnnotationBasedArgumentConverter<JavaTimeConversionPattern>input - the source object to convert; may be nulltargetClass - the target type the source object should be converted
into; never nullannotation - the annotation to process; never nullnull but only if the target
type is a reference type