com.gitee.cliveyuan.tools.data.ExcelGenerateParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-tools Show documentation
Show all versions of java-tools Show documentation
Some commonly used methods in java
package com.gitee.cliveyuan.tools.data;
import com.gitee.cliveyuan.tools.enums.ExcelType;
import com.google.common.collect.Lists;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
/**
* Created by Clive on 2019/10/28.
*/
@Data
@Builder
public class ExcelGenerateParam implements Serializable {
private String filePath;
private ExcelType excelType;
@Builder.Default
private List sheetContentList = Lists.newArrayList();
public ExcelGenerateParam addSheetContent(String sheetName, String[] headers, Collection data) {
this.sheetContentList.add(new SheetContent(sheetName, headers, data));
return this;
}
}