com.gitee.beiding.template_excel.ValueHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of template-excel Show documentation
Show all versions of template-excel Show documentation
使用模板快速提取excel文件中的数据为数据实体,或者使用模板将数据实体渲染成excel
package com.gitee.beiding.template_excel;
class ValueHolder {
ValueHolder(Object value, int row) {
this.value = value;
this.row = row;
}
//值
private Object value;
void setValue(Object value) {
this.value = value;
}
//值的跨度
private int row;
int getRow() {
return row;
}
Object getValue() {
return value;
}
@Override
public String toString() {
return value + " " + row;
}
}