Class StringToLocalTimeConverter

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

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

This converter expects strings in the DateTimeFormatter.ISO_LOCAL_TIME format.

Since:
5.0.1
Author:
Mahmoud Ben Hassine
  • Field Details

  • Constructor Details

    • StringToLocalTimeConverter

      public StringToLocalTimeConverter()
  • Method Details

    • convert

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