Browse Source

update test document

1
developing
jipengfei-jpf 6 years ago committed by GitHub
parent
commit
3498be8846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java

5
src/test/java/com/alibaba/easyexcel/test/listen/ExcelListener.java

@ -14,9 +14,8 @@ public class ExcelListener extends AnalysisEventListener {
@Override
public void invoke(Object object, AnalysisContext context) {
System.out.println(context.getCurrentSheet());
if(data.size()<=100){
data.add(object);
}else {
data.add(object);
if(data.size()>=100){
doSomething();
data = new ArrayList<Object>();
}

Loading…
Cancel
Save