Revize 9e9e8d67
Přidáno uživatelem Michal Linha před asi 4 roky(ů)
src/main/java/vldc/aswi/model/table/Node.java | ||
---|---|---|
4 | 4 |
import java.util.Collection; |
5 | 5 |
import java.util.List; |
6 | 6 |
|
7 |
/** |
|
8 |
* Class representing a node in a tree of row or column values. |
|
9 |
*/ |
|
7 | 10 |
public class Node { |
8 | 11 |
|
12 |
/** |
|
13 |
* Values of the nodes on a path the the node. |
|
14 |
*/ |
|
9 | 15 |
private List<String> values; |
10 | 16 |
|
17 |
/** |
|
18 |
* Creates a node. |
|
19 |
*/ |
|
11 | 20 |
public Node() { |
12 | 21 |
this.values = new ArrayList<>(); |
13 | 22 |
} |
14 | 23 |
|
24 |
/** |
|
25 |
* Creates a node with the same values as the given node. |
|
26 |
* @param node node to be copied |
|
27 |
*/ |
|
15 | 28 |
public Node(Node node) { |
16 | 29 |
this.values = new ArrayList<>(node.values); |
17 | 30 |
} |
18 | 31 |
|
32 |
/** |
|
33 |
* Gets values. |
|
34 |
* @return values. |
|
35 |
*/ |
|
19 | 36 |
public List<String> getValues() { |
20 | 37 |
return values; |
21 | 38 |
} |
22 | 39 |
|
40 |
/** |
|
41 |
* Sets values. |
|
42 |
* @param values values. |
|
43 |
*/ |
|
23 | 44 |
public void setValues(List<String> values) { |
24 | 45 |
this.values = values; |
25 | 46 |
} |
Také k dispozici: Unified diff
re #7885 added SUM and ability to work with multiple values and sorted parameters in configuration, optimization