Class ChronoLocalDateToStringConverter

java.lang.Object
tech.corefinance.common.converter.ChronoLocalDateToStringConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<ChronoLocalDate,String>, org.springframework.core.convert.converter.GenericConverter

@Component @ConditionalOnProperty(name="tech.corefinance.app.converter.local-date-to-string", havingValue="true", matchIfMissing=true) @WritingConverter public class ChronoLocalDateToStringConverter extends Object implements org.springframework.core.convert.converter.GenericConverter, org.springframework.core.convert.converter.Converter<ChronoLocalDate,String>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter

    org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
     
     
    Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen
  • Constructor Details

    • ChronoLocalDateToStringConverter

      public ChronoLocalDateToStringConverter()
  • Method Details

    • convert

      public String convert(@Nullable ChronoLocalDate date)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<ChronoLocalDate,String>
    • getConvertibleTypes

      public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
      Specified by:
      getConvertibleTypes in interface org.springframework.core.convert.converter.GenericConverter
    • convert

      public Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType)
      Specified by:
      convert in interface org.springframework.core.convert.converter.GenericConverter