Package org.jeasy.batch.core.converter
Class LocalDateConverter
- java.lang.Object
-
- org.jeasy.batch.core.converter.LocalDateConverter
-
- All Implemented Interfaces:
TypeConverter<java.lang.String,java.time.LocalDate>
public class LocalDateConverter extends java.lang.Object implements TypeConverter<java.lang.String,java.time.LocalDate>
LocalDate
type converter. Converts a String date in theDateTimeFormatter.ISO_LOCAL_DATE
format to aLocalDate
type.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description LocalDateConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.LocalDate
convert(java.lang.String value)
Convert a source type into a target type.
-
-
-
Method Detail
-
convert
public java.time.LocalDate convert(java.lang.String value)
Description copied from interface:TypeConverter
Convert a source type into a target type.- Specified by:
convert
in interfaceTypeConverter<java.lang.String,java.time.LocalDate>
- Parameters:
value
- the input value to convert- Returns:
- The converted value
-
-