Search in sources :

Example 1 with DemoData

use of com.alibaba.easyexcel.test.demo.write.DemoData in project easyexcel by alibaba.

the class WriteV33Test method data.

private List<DemoData> data() {
    List<DemoData> list = new ArrayList<>();
    for (int i = 0; i < 10; i++) {
        DemoData data = new DemoData();
        data.setString("字符串" + i);
        data.setDate(new Date());
        data.setDoubleData(0.56);
        list.add(data);
    }
    return list;
}
Also used : ArrayList(java.util.ArrayList) Date(java.util.Date) DemoData(com.alibaba.easyexcel.test.demo.write.DemoData)

Example 2 with DemoData

use of com.alibaba.easyexcel.test.demo.write.DemoData in project easyexcel by alibaba.

the class Wirte method data.

private List<DemoData> data() {
    List<DemoData> list = new ArrayList<DemoData>();
    for (int i = 0; i < 10; i++) {
        DemoData data = new DemoData();
        data.setString("640121807369666560" + i);
        data.setDate(new Date());
        data.setDoubleData(null);
        list.add(data);
    }
    return list;
}
Also used : ArrayList(java.util.ArrayList) Date(java.util.Date) DemoData(com.alibaba.easyexcel.test.demo.write.DemoData)

Example 3 with DemoData

use of com.alibaba.easyexcel.test.demo.write.DemoData in project easyexcel by alibaba.

the class WriteV34Test method data.

private List<DemoData> data(int no) {
    List<DemoData> list = new ArrayList<DemoData>();
    for (int i = 0; i < 10; i++) {
        DemoData data = new DemoData();
        data.setString("字符串" + no + "---" + i);
        list.add(data);
    }
    return list;
}
Also used : ArrayList(java.util.ArrayList) DemoData(com.alibaba.easyexcel.test.demo.write.DemoData)

Example 4 with DemoData

use of com.alibaba.easyexcel.test.demo.write.DemoData in project easyexcel by alibaba.

the class Lock2Test method data.

private List<DemoData> data() {
    List<DemoData> list = new ArrayList<DemoData>();
    for (int i = 0; i < 10; i++) {
        DemoData data = new DemoData();
        data.setString("字符串" + i);
        data.setDate(new Date());
        data.setDoubleData(0.56);
        list.add(data);
    }
    return list;
}
Also used : ArrayList(java.util.ArrayList) Date(java.util.Date) DemoData(com.alibaba.easyexcel.test.demo.write.DemoData)

Aggregations

DemoData (com.alibaba.easyexcel.test.demo.write.DemoData)4 ArrayList (java.util.ArrayList)4 Date (java.util.Date)3