Class LocalDateTimeConverter

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

public class LocalDateTimeConverter extends Object implements Converter<LocalDateTime>
  • Constructor Details

    • LocalDateTimeConverter

      public LocalDateTimeConverter()
  • Method Details

    • convert

      public @Nullable LocalDateTime convert(@Nullable Object value)
      Description copied from interface: ConverterFunction
      Converts the given value to the target type.
      Specified by:
      convert in interface ConverterFunction<LocalDateTime>
      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<LocalDateTime>
      Returns:
      the target Java class