Projekt

Obecné

Profil

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

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

    
7
/**
8
 * Class representing a node in a tree of row or column values.
9
 */
10
public class Node {
11

    
12
    /**
13
     * Values of the nodes on a path the the node.
14
     */
15
    private List<String> values;
16

    
17
    /**
18
     * Creates a node.
19
     */
20
    public Node() {
21
        this.values = new ArrayList<>();
22
    }
23

    
24
    /**
25
     * Creates a node with the same values as the given node.
26
     * @param node node to be copied
27
     */
28
    public Node(Node node) {
29
        this.values = new ArrayList<>(node.values);
30
    }
31

    
32
    /**
33
     * Gets values.
34
     * @return values.
35
     */
36
    public List<String> getValues() {
37
        return values;
38
    }
39

    
40
    /**
41
     * Sets values.
42
     * @param values values.
43
     */
44
    public void setValues(List<String> values) {
45
        this.values = values;
46
    }
47
}
(2-2/4)