Class JavaTimeArgumentConverter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Map<java.lang.Class<?>,​java.time.temporal.TemporalQuery<?>> TEMPORAL_QUERIES  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Field Detail

      • TEMPORAL_QUERIES

        private static final java.util.Map<java.lang.Class<?>,​java.time.temporal.TemporalQuery<?>> TEMPORAL_QUERIES
    • Constructor Detail

      • JavaTimeArgumentConverter

        JavaTimeArgumentConverter()
    • Method Detail

      • convert

        protected java.lang.Object convert​(java.lang.Object input,
                                           java.lang.Class<?> targetClass,
                                           JavaTimeConversionPattern annotation)
        Description copied from class: AnnotationBasedArgumentConverter
        Convert the supplied source object into the supplied targetType, based on metadata in the provided annotation.
        Specified by:
        convert in class AnnotationBasedArgumentConverter<JavaTimeConversionPattern>
        Parameters:
        input - the source object to convert; may be null
        targetClass - the target type the source object should be converted into; never null
        annotation - the annotation to process; never null
        Returns:
        the converted object; may be null but only if the target type is a reference type