1
2
3
4
5
6
7
8
9
10
11 package psiprobe.model.jsp;
12
13 import java.io.Serializable;
14 import java.util.Collections;
15 import java.util.HashMap;
16 import java.util.Map;
17
18
19
20
21 public class Summary implements Serializable {
22
23
24 private static final long serialVersionUID = 1L;
25
26
27 private String name;
28
29
30 private Map<String, Item> items;
31
32
33 private int outOfDateCount;
34
35
36
37
38
39
40 public String getName() {
41 return name;
42 }
43
44
45
46
47
48
49 public void setName(String name) {
50 this.name = name;
51 }
52
53
54
55
56
57
58 public Map<String, Item> getItems() {
59 return items == null ? Collections.emptyMap() : new HashMap<>(items);
60 }
61
62
63
64
65
66
67 public void setItems(Map<String, Item> items) {
68 this.items = items == null ? Collections.emptyMap() : new HashMap<>(items);
69 }
70
71
72
73
74
75
76
77 public void putItem(String string, Item item) {
78 if (items == null) {
79 items = new HashMap<>();
80 }
81 items.put(string, item);
82 }
83
84
85
86
87
88
89 public int getOutOfDateCount() {
90 return outOfDateCount;
91 }
92
93
94
95
96
97
98 public void setOutOfDateCount(int outOfDateCount) {
99 this.outOfDateCount = outOfDateCount;
100 }
101
102 }