Class StringToLocalDateConverter

java.lang.Object
org.springframework.batch.core.converter.StringToLocalDateConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,LocalDate>

public class StringToLocalDateConverter extends Object implements org.springframework.core.convert.converter.Converter<String,LocalDate>
Converter implementation from String to LocalDate.

This converter expects strings in the DateTimeFormatter.ISO_LOCAL_DATE format.

Since:
5.0.1
Author:
Mahmoud Ben Hassine
  • Field Details

  • Constructor Details

    • StringToLocalDateConverter

      public StringToLocalDateConverter()
  • Method Details

    • convert

      public LocalDate convert(String source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,LocalDate>