Class LocalDateConverter

java.lang.Object
org.litebridgedb.convert.converter.LocalDateConverter
All Implemented Interfaces:
Converter<LocalDate>, ConverterFunction<LocalDate>

public class LocalDateConverter extends Object implements Converter<LocalDate>
  • Constructor Details

    • LocalDateConverter

      public LocalDateConverter()
  • Method Details

    • convert

      public @Nullable LocalDate convert(@Nullable Object value)
      Description copied from interface: ConverterFunction
      Converts the given value to the target type.
      Specified by:
      convert in interface ConverterFunction<LocalDate>
      Parameters:
      value - the value to convert, may be null
      Returns:
      the converted value, or null if the input was null or could not be converted
    • type

      public Class<?> type()
      Description copied from interface: Converter
      Returns the target Java class this converter handles.
      Specified by:
      type in interface Converter<LocalDate>
      Returns:
      the target Java class