holmos.webtest.junitextentions.parameters.excel.HolmosRow Maven / Gradle / Ivy
package holmos.webtest.junitextentions.parameters.excel;
import holmos.webtest.log.MyLogger;
import java.util.ArrayList;
import org.apache.poi.ss.usermodel.Row;
/**
* @author 吴银龙([email protected])
* */
public class HolmosRow {
MyLogger logger=MyLogger.getLogger(HolmosRow.class);
private Row row;
public HolmosRow(Row row){
this.row=row;
}
/**
* 获取有效的列数
* */
public int getValidColumnCount(){
return row.getLastCellNum()-row.getFirstCellNum();
}
/**
* 根据列号来获取Cell
* */
public HolmosCell getCellByIndex(int index){
if(indexgetValidCells(){
ArrayListvalidCells=new ArrayList();
for(int i=row.getFirstCellNum();igetValidValues(){
ArrayList