package com.gkhy.safePlatform.targetDuty.utils.poihelper;
import java.util.ArrayList;
import java.util.List;
/**
* The ExcelLogs
*
*/
public class ExcelLogs {
private Boolean hasError;
private List logList;
/**
*
*/
public ExcelLogs() {
super();
hasError = false;
}
/**
* @return the hasError
*/
public Boolean getHasError() {
return hasError;
}
/**
* @param hasError
* the hasError to set
*/
public void setHasError(Boolean hasError) {
this.hasError = hasError;
}
/**
* @return the logList
*/
public List getLogList() {
return logList;
}
public List getErrorLogList() {
List errList = new ArrayList<>();
for (ExcelLog log : this.logList) {
if (log != null && ExcelUtil.isNotBlank(log.getLog())) {
errList.add(log);
}
}
return errList;
}
/**
* @param logList
* the logList to set
*/
public void setLogList(List logList) {
this.logList = logList;
}
}