1 | public class Stock {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Event {↵
|
3 | private Long id;↵ | | 3 | private Long id;↵
|
4 | ↵ | | |
|
5 | private String tradeSymbol;↵ | | 4 | private String t↵
|
6 | private Valuation currentValuation;↵ | | |
|
7 | private Set valuations = new HashSet();↵ | | |
|
|
8 | ↵ | | 5 | itle;↵
|
| | | 6 | private Date date;↵
|
|
| | | 7 | public Event() {}↵
|
|
9 | public Long getId() {↵ | | 8 | public Long getId() {↵
|
10 | return id;↵ | | 9 | return id;↵
|
11 | }↵ | | |
|
|
12 | public↵ | | 10 | }↵
|
|
13 | void setId(Long id) {↵ | | 11 | private void setId(Long id) {↵
|
14 | this.id = id;↵ | | 12 | this.id = id;↵
|
15 | }↵ | | |
|
|
16 | ↵ | | 13 | }↵
|
|
17 | public String getTradeSymbol() {↵ | | 14 | public ↵
|
18 | return tradeSymbol;↵ | | |
|
19 | }↵ | | |
|
|
20 | public void setTradeSymbol(String tradeSymbol) {↵ | | |
|
21 | this.tradeSymbol = tradeSymbol;↵ | | |
|
22 | }↵ | | |
|
|
23 | public Valuation getCurrentValuation() {↵ | | |
|
24 | return currentValuation;↵ | | |
|
25 | }↵ | | |
|
|
26 | public void setCurrentValuation(Valuation currentValuation) {↵ | | |
|
27 | this.currentValuation = currentValuation;↵ | | |
|
28 | }↵ | | |
|
|
29 | public Set getValuations() {↵ | | |
|
30 | return valuations;↵ | | |
|
31 | }↵ | | |
|
|
32 | ↵ | | 15 | Date getDate() {↵
|
| | | 16 | return date;↵
|
| | | 17 | }↵
|
|
| | | 18 | public void setDate(Date date) {↵
|
| | | 19 | this.date = date;↵
|
| | | 20 | }↵
|
|
| | | 21 | public String getTitle() {↵
|
| | | 22 | return title;↵
|
| | | 23 | }↵
|
|
| | | 24 | public void setTitle(String title) {↵
|
| | | 25 | this.title = title;↵
|
| | | 26 | }↵
|
| | | 27 | ↵
|
|
| | | 28 | private Set participants = new HashSet();↵
|
|
| | | 29 | public Set getParticipants() {↵
|
| | | 30 | return participants;↵
|
| | | 31 | }↵
|
|
33 | public void setValuations(Set valuations) {↵ | | 32 | public void set↵
|
34 | this.valuations = valuations;↵ | | |
|
35 | | | 33 | Participants(Set participants) {↵
|
| | | 34 | this.participants = participants;↵
|
| | | 35 |
|