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

com.github.deansquirrel.tools.poi.WorkTableData Maven / Gradle / Ivy

package com.github.deansquirrel.tools.poi;

import java.util.List;

/**
 * Excel表格数据
 */
public class WorkTableData {

    private WorkTableData(){};

    private WorkTableData(String name) {
        this.name = name;
    }

    private WorkTableData(String name, List title, List> rows) {
        this.name = name;
        this.title = title;
        this.rows = rows;
    }

    public static WorkTableData builder(String name) {
        return new WorkTableData(name);
    }

    public static WorkTableData builder(String name, List title, List> rows) {
        return new WorkTableData(name, title, rows);
    }

    private String name;
    private List title;
    private List> rows;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List getTitle() {
        return title;
    }

    public void setTitle(List title) {
        this.title = title;
    }

    public WorkTableData initTitle(List title) {
        this.title = title;
        return this;
    }

    public List> getRows() {
        return rows;
    }

    public void setRows(List> rows) {
        this.rows = rows;
    }

    public WorkTableData initRows(List> rows) {
        this.rows = rows;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy