Projekt

Obecné

Profil

Stáhnout (973 Bajtů) Statistiky
| Větev: | Revize:
1
package vldc.aswi.model.table.contingencyTable;
2

    
3
import java.util.ArrayList;
4
import java.util.List;
5

    
6
public class ContingencyTableRow {
7

    
8
    private boolean isHeader;
9

    
10
    private int level;
11

    
12
    private List<ContingencyTableRowCell> cells;
13

    
14
    public ContingencyTableRow(boolean isHeader, int level) {
15
        this.isHeader = isHeader;
16
        this.level = level;
17

    
18
        cells = new ArrayList<>();
19
    }
20

    
21
    public void addTableRowCell(ContingencyTableRowCell cell) {
22
        cells.add(cell);
23
    }
24

    
25
    public boolean isHeader() {
26
        return isHeader;
27
    }
28

    
29
    public int getLevel() {
30
        return level;
31
    }
32

    
33
    public List<ContingencyTableRowCell> getCells() {
34
        return cells;
35
    }
36

    
37
    @Override
38
    public String toString() {
39
        String str = "";
40
        for (ContingencyTableRowCell contingencyTableRowCell : cells) {
41
            str += contingencyTableRowCell.toString();
42
            str += "\t|\t";
43
        }
44

    
45
        return str;
46
    }
47
}
(1-1/2)