com.github.ejahns.model.DataTable Maven / Gradle / Ivy
The newest version!
package com.github.ejahns.model;
import java.util.List;
import java.util.stream.Collectors;
import com.github.ejahns.model.interfaces.haselement.HasTableRows;
public class DataTable implements HasTableRows {
private List tableRows;
@Override
public List getTableRows() {
return tableRows;
}
@Override
public void setTableRows(List tableRows) {
this.tableRows = tableRows;
}
@Override
public List> generateTable() {
return tableRows.stream().map(TableRow::getCells).collect(Collectors.toList());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy