All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.orion.office.excel.writer.ExcelLambdaWriter Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
package com.orion.office.excel.writer;

import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.function.Function;

/**
 * excel lambda 写入器
 *
 * @author Jiahang Li
 * @version 1.0.0
 * @since 2021/9/11 12:59
 */
public class ExcelLambdaWriter extends BaseExcelWriter, T> {

    public ExcelLambdaWriter(Workbook workbook, Sheet sheet) {
        super(workbook, sheet);
    }

    @Override
    protected Object getValue(T row, Function key) {
        return key.apply(row);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy