All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sixpointsix.carpo.common.model.DataSet Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
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(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy