com.pig4cloud.plugin.excel.head.HeadGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of excel-spring-boot-starter Show documentation
Show all versions of excel-spring-boot-starter Show documentation
easy and high performance excel
package com.pig4cloud.plugin.excel.head;
import com.alibaba.excel.write.builder.ExcelWriterBuilder;
import java.util.List;
/**
* Excel头生成器,用于自定义生成头部信息
*
* @author Hccake 2020/10/27
* @version 1.0
*/
public interface HeadGenerator {
/**
*
* 自定义头部信息
*
* 实现类根据数据的class信息,定制Excel头
* 具体方法使用参考:https://www.yuque.com/easyexcel/doc/write#b4b9de00
* @param writerBuilder ExcelWriterBuilder
* @param clazz 当前sheet的数据类型
*
* @return List> Head头信息
*/
List> head(ExcelWriterBuilder writerBuilder, Class> clazz);
}