net.sixpointsix.carpo.common.model.DataSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carpo-common Show documentation
Show all versions of carpo-common Show documentation
Common until library for carpo
package net.sixpointsix.carpo.common.model;
import java.util.List;
public interface DataSet {
/**
* Get an empty data set
* @return empty data set
*/
static DataSet empty() {
return new ListDataSet(List.of());
}
/**
* Get the list of rows
* @return rows in the set
*/
List getRows();
/**
* Get all the headers in the data set
*
*
* This method assumes the headers are consistent since a csv could not support anything else
*
* @return list of the headers
*/
List getHeaders();
/**
* Test if the list of rows is empty
* @return true if empty
*/
boolean isEmpty();
}