Class Builder

java.lang.Object
org.aoju.bus.office.Builder

public final class Builder extends Object
为office提供辅助功能.
Since:
Java 17+
Author:
Kimi Liu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    没有引入POI的错误消息
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isDateFormat(int formatIndex, String formatString)
    判断日期格式
    static boolean
    isDateFormat(org.apache.poi.ss.usermodel.Cell cell)
    是否日期格式
    static boolean
    isDateFormat(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.formula.ConditionalFormattingEvaluator cfEvaluator)
    判断是否日期格式
    static boolean
    isDateFormat(org.apache.poi.ss.usermodel.ExcelNumberFormat numFmt)
    判断是否日期格式

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • isDateFormat

      public static boolean isDateFormat(org.apache.poi.ss.usermodel.Cell cell)
      是否日期格式
      Parameters:
      cell - 单元格
      Returns:
      是否日期格式
    • isDateFormat

      public static boolean isDateFormat(org.apache.poi.ss.usermodel.Cell cell, org.apache.poi.ss.formula.ConditionalFormattingEvaluator cfEvaluator)
      判断是否日期格式
      Parameters:
      cell - 单元格
      cfEvaluator - ConditionalFormattingEvaluator
      Returns:
      是否日期格式
    • isDateFormat

      public static boolean isDateFormat(org.apache.poi.ss.usermodel.ExcelNumberFormat numFmt)
      判断是否日期格式
      Parameters:
      numFmt - ExcelNumberFormat
      Returns:
      是否日期格式
    • isDateFormat

      public static boolean isDateFormat(int formatIndex, String formatString)
      判断日期格式
      Parameters:
      formatIndex - 格式索引,一般用于内建格式
      formatString - 格式字符串
      Returns:
      是否为日期格式