net.thucydides.core.model.DataSet Maven / Gradle / Ivy
The newest version!
package net.thucydides.core.model;
import com.google.common.collect.ImmutableList;
import java.util.List;
/**
* Created by john on 13/08/2014.
*/
public class DataSet {
private final int startRow;
private final String name;
private final String description;
private final List rows;
public DataSet(int startRow, int rowCount, String name, String description, List rows) {
this.startRow = startRow;
this.name = name;
this.description = description;
this.rows = extractRows(rows, startRow, rowCount);
}
private List extractRows(List rows, int startRow, int rowCount) {
int endRow = (rowCount == 0) ? rows.size() : startRow + rowCount;
return ImmutableList.copyOf(rows.subList(startRow, endRow));
}
public String getDescription() {
return description;
}
public String getName() {
return name;
}
public int getStartRow() {
return startRow;
}
public List getRows() {
return rows;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy