com.github.ejahns.model.ExamplesTable Maven / Gradle / Ivy
package com.github.ejahns.model;
import java.util.List;
import java.util.stream.Collectors;
import com.github.ejahns.model.interfaces.haselement.HasTableRows;
public class ExamplesTable implements HasTableRows {
private TableRow header;
private List tableRows;
public TableRow getHeader() {
return header;
}
public void setHeader(TableRow header) {
this.header = header;
}
@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