1 | public class Stock {↵ | | 1 | public class C2 extends B {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String tradeSymbol;↵ | | |
|
4 | private Valuation currentValuation↵ | | 3 | String address;↵
|
| | | 4 | private C1 c1;↵
|
5 | ;↵ | | 5 | private String c2Name;↵
|
6 | private Set valuations = new HashSet();↵ | | 6 | private Collection c1s = new ↵
|
| | | 7 | ArrayList();↵
|
| | | 8 | /**↵
|
| | | 9 | * Returns the address.↵
|
| | | 10 | * @return String↵
|
| | | 11 | */↵
|
7 | public Long getId() {↵ | | 12 | public String getAddress() {↵
|
8 | return id;↵ | | 13 | return ↵
|
9 | }↵ | | |
|
| | | 14 | address;↵
|
| | | 15 | }↵
|
| | | 16 | ↵
|
| | | 17 | /**↵
|
| | | 18 | * Sets the address.↵
|
| | | 19 | * @param address The address to set↵
|
| | | 20 | */↵
|
10 | public void setId(Long id) {↵ | | 21 | public void setAddress(String address) {↵
|
11 | this.id = id;↵ | | 22 | this.↵
|
12 | }↵ | | |
|
|
13 | public String getTradeSymbol() {↵ | | |
|
14 | return tradeSymbol;↵ | | |
|
15 | }↵ | | |
|
|
16 | public void setTradeSymbol(String tradeSymbol) {↵ | | |
|
17 | this.tradeSymbol = tradeSymbol;↵ | | |
|
18 | }↵ | | |
|
| | | 23 | address = address;↵
|
| | | 24 | }↵
|
| | | 25 | ↵
|
| | | 26 | /**↵
|
| | | 27 | * @return Returns the c.↵
|
| | | 28 | */↵
|
| | | 29 | public C1 getC1() {↵
|
| | | 30 | return c1;↵
|
| | | 31 | }↵
|
|
| | | 32 | /**↵
|
| | | 33 | * @param c The c to set.↵
|
| | | 34 | */↵
|
| | | 35 | public void setC1(C1 c) {↵
|
| | | 36 | this.c1 = c;↵
|
| | | 37 | }↵
|
|
| | | 38 | /**↵
|
| | | 39 | * @return Returns the cs.↵
|
| | | 40 | */↵
|
19 | public Valuation getCurrentValuation() {↵ | | 41 | public Collection getC↵
|
20 | return currentValuation;↵ | | |
|
21 | }↵ | | |
|
|
22 | public void setCurrentValuation(Valuation currentValuation) {↵ | | |
|
23 | this.currentValuation = currentValuation;↵ | | |
|
24 | }↵ | | |
|
|
25 | public Set getValuations↵ | | 42 | 1s() {↵
|
| | | 43 | return c1s;↵
|
| | | 44 | }↵
|
|
| | | 45 | /**↵
|
| | | 46 | * @param cs The cs to set.↵
|
| | | 47 | */↵
|
| | | 48 | public void setC1s(Collection cs) {↵
|
| | | 49 | this.c1s = cs;↵
|
| | | 50 | }↵
|
|
26 | () {↵ | | 51 | public String getC2Name() {↵
|
27 | return valuations;↵ | | 52 | return c2Name;↵
|
28 | }↵ | | 53 | }↵
|
|
29 | public void setValuations(Set valuations) {↵ | | 54 | public void set↵
|
30 | this.valuations = valuations | | 55 | C2Name(String name) {↵
|
| | | 56 | c2Name = name
|