simplebean.java
来自「一个java生成自动生成Excel」· Java 代码 · 共 89 行
JAVA
89 行
package net.sf.jxls.bean;import java.util.Date;/** * @author Leonid Vysochyn */public class SimpleBean { private String name; private Double doubleValue; private Integer intValue; private Date dateValue; private SimpleBean other; int amount; public SimpleBean(String name, Double doubleValue, Integer intValue, Date dateValue) { this.name = name; this.doubleValue = doubleValue; this.intValue = intValue; this.dateValue = dateValue; } public SimpleBean(String name, Double doubleValue, Integer intValue) { this.name = name; this.doubleValue = doubleValue; this.intValue = intValue; } public SimpleBean(int amount) { this.amount = amount; } public int getAmount() { return amount; } public void setAmount(int amount) { this.amount = amount; } public String getBeansProp(){ return "beans_for_" + name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Double getDoubleValue() { return doubleValue; } public void setDoubleValue(Double doubleValue) { this.doubleValue = doubleValue; } public SimpleBean getOther() { return other; } public void setOther(SimpleBean other) { this.other = other; } public Integer getIntValue() { return intValue; } public void setIntValue(Integer intValue) { this.intValue = intValue; } public Date getDateValue() { return dateValue; } public void setDateValue(Date dateValue) { this.dateValue = dateValue; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?