1 | public class Car implements java.io.Serializable {↵ | | 1 | public class C2 extends B {↵
|
|
2 | private long id;↵ | | 2 | private ↵
|
3 | private String model;↵ | | |
|
4 | private CarType carType;↵ | | |
|
5 | private Set carParts = new HashSe↵ | | 3 | String address;↵
|
| | | 4 | private C1 c1;↵
|
| | | 5 | private String c2Name;↵
|
6 | t();↵ | | 6 | private Collection c1s = new ArrayList();↵
|
7 | ↵ | | 7 | ↵
|
8 | /**↵ | | 8 | /**↵
|
9 | * @return Returns the carType.↵ | | 9 | * Returns the address.↵
|
| | | 10 | * @return String↵
|
10 | */↵ | | 11 | */↵
|
11 | public CarType getCarType() {↵ | | 12 | public String getAddress() {↵
|
12 | return carType;↵ | | 13 | return address;↵
|
13 | }↵ | | 14 | }↵
|
14 | ↵ | | 15 | ↵
|
15 | /**↵ | | 16 | /**↵
|
16 | * @param carType The carType↵ | | 17 | * Sets the address.↵
|
17 | to set.↵ | | 18 | * @param address The address to set↵
|
18 | */↵ | | 19 | */↵
|
19 | public void setCarType(CarType carType) {↵ | | 20 | public void setAddress(String address) {↵
|
20 | this.carType = carType;↵ | | 21 | this.address = address;↵
|
21 | }↵ | | 22 | }↵
|
22 | ↵ | | 23 | ↵
|
23 | /**↵ | | 24 | /**↵
|
24 | * @return Returns the id.↵ | | 25 | * @return Returns the c.↵
|
25 | */↵ | | 26 | */↵
|
26 | public long getId() {↵ | | 27 | public C1 getC1() {↵
|
27 | return id;↵ | | 28 | return c1;↵
|
28 | }↵ | | 29 | }↵
|
|
29 | /**↵ | | 30 | /**↵
|
30 | * @param id The id to set.↵ | | 31 | * @param c The c to set.↵
|
31 | */↵ | | 32 | */↵
|
32 | public void setId(long id) {↵ | | 33 | public void setC1(C1 c) {↵
|
33 | this.id = id;↵ | | 34 | this.c1 = c;↵
|
34 | }↵ | | 35 | }↵
|
|
35 | /**↵ | | 36 | /**↵
|
36 | * @return Returns the model.↵ | | 37 | * @return Returns the cs.↵
|
37 | */↵ | | 38 | */↵
|
38 | public String getModel() {↵ | | 39 | public Collection getC1s() {↵
|
39 | return model;↵ | | 40 | return c1s;↵
|
40 | }↵ | | 41 | }↵
|
|
41 | /**↵ | | 42 | /**↵
|
42 | * @param model The model to set.↵ | | 43 | * @param cs The cs to set.↵
|
43 | */↵ | | 44 | */↵
|
44 | public void setModel(String model) {↵ | | 45 | public void set↵
|
45 | this.model = model↵ | | 46 | C1s(Collection cs) {↵
|
46 | ;↵ | | 47 | this.c1s = cs;↵
|
47 | }↵ | | 48 | }↵
|
|
48 | public Set getCarParts() {↵ | | 49 | public String getC2Name() {↵
|
49 | return carParts;↵ | | 50 | return c2Name;↵
|
50 | }↵ | | 51 | }↵
|
|
51 | public void setCarParts(Set carParts) {↵ | | 52 | public void setC↵
|
52 | this.carParts = carParts↵ | | 53 | 2Name(String name) {↵
|
53 | ;↵ | | 54 | c2Name = name;↵
|
54 | | | 55 |
|