Enum Class LocalDateTimeStringConverter

java.lang.Object
java.lang.Enum<LocalDateTimeStringConverter>
cn.twelvet.excel.converters.LocalDateTimeStringConverter
All Implemented Interfaces:
com.alibaba.excel.converters.Converter<LocalDateTime>, Serializable, Comparable<LocalDateTimeStringConverter>, Constable

public enum LocalDateTimeStringConverter extends Enum<LocalDateTimeStringConverter> implements com.alibaba.excel.converters.Converter<LocalDateTime>
LocalDateTime and string converter
Author:
twelvet
  • Enum Constant Details

  • Method Details

    • values

      public static LocalDateTimeStringConverter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LocalDateTimeStringConverter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • supportJavaTypeKey

      public Class supportJavaTypeKey()
      Specified by:
      supportJavaTypeKey in interface com.alibaba.excel.converters.Converter<LocalDateTime>
    • supportExcelTypeKey

      public com.alibaba.excel.enums.CellDataTypeEnum supportExcelTypeKey()
      Specified by:
      supportExcelTypeKey in interface com.alibaba.excel.converters.Converter<LocalDateTime>
    • convertToJavaData

      public LocalDateTime convertToJavaData(com.alibaba.excel.metadata.data.ReadCellData cellData, com.alibaba.excel.metadata.property.ExcelContentProperty contentProperty, com.alibaba.excel.metadata.GlobalConfiguration globalConfiguration) throws ParseException
      Specified by:
      convertToJavaData in interface com.alibaba.excel.converters.Converter<LocalDateTime>
      Throws:
      ParseException
    • convertToExcelData

      public com.alibaba.excel.metadata.data.WriteCellData<String> convertToExcelData(LocalDateTime value, com.alibaba.excel.metadata.property.ExcelContentProperty contentProperty, com.alibaba.excel.metadata.GlobalConfiguration globalConfiguration)
      Specified by:
      convertToExcelData in interface com.alibaba.excel.converters.Converter<LocalDateTime>