Coverage Summary for Class: God (it.polimi.ingsw.view.model)
Class | Class, % | Method, % | Line, % |
---|---|---|---|
God | 100% (1/ 1) | 100% (3/ 3) | 100% (7/ 7) |
1 package it.polimi.ingsw.view.model;
2
3 import java.util.ArrayList;
4 import java.util.Arrays;
5 import java.util.List;
6
7 /**
8 * God Data Structure
9 */
10 public class God implements RawObj {
11 /**
12 * God value
13 */
14 private final String value;
15
16 /**
17 * God Constructor
18 *
19 * @param god god value
20 */
21 public God(String god) {
22 if (god == null)
23 throw new NullPointerException();
24 this.value = god;
25 }
26
27 @Override
28 public List<String> getRawData() {
29 return new ArrayList<>(Arrays.asList("God: " + value));
30 }
31
32 /**
33 * Get god value
34 *
35 * @return god value
36 */
37 public String getValue() {
38 return value;
39 }
40 }