Projekt

Obecné

Profil

« Předchozí | Další » 

Revize ba8b306a

Přidáno uživatelem Vojtěch Danišík před asi 4 roky(ů)

re #7886 Assembly validator in progress (validating assembly SQLQuery + locations for existing assembly, not tested for new assembly).
Added comments.
Removing unused imports.

Zobrazit rozdíly:

src/main/java/vldc/aswi/model/table/TableColumn.java
3 3
import java.util.ArrayList;
4 4
import java.util.List;
5 5

  
6
/**
7
 * Class representing one table column.
8
 */
6 9
public class TableColumn {
7 10

  
11
    /** Name of table column. */
8 12
    private String name;
9 13

  
14
    /** List of values in current column. */
10 15
    private List<String> values;
11 16

  
17
    /**
18
     * Constructor.
19
     * @param name - Name of table column.
20
     */
12 21
    public TableColumn(String name) {
13 22
        this.name = name;
14 23
        values = new ArrayList<>();
15 24
    }
16 25

  
26
    /**
27
     * Add new value into list of values.
28
     * @param value - New value.
29
     */
17 30
    public void addValue(String value) {
18 31
        values.add(value);
19 32
    }
20 33

  
34
    /**
35
     * Get name of table column.
36
     * @return Name of table column.
37
     */
21 38
    public String getName() {
22 39
        return name;
23 40
    }
24 41

  
42
    /**
43
     * Get all values in current table column.
44
     * @return List of all values.
45
     */
25 46
    public List<String> getValues() {
26 47
        return values;
27 48
    }

Také k dispozici: Unified diff