1 | public class Car implements java.io.Serializable {↵ | | 1 | public class Eye {↵
|
|
2 | private long id;↵ | | 2 | private long id;↵
|
3 | private String model;↵ | | 3 | private String name;↵
|
4 | private CarType carType;↵ | | 4 | private Jay jay;↵
|
5 | private Set carParts = new HashSet();↵ | | 5 | private Set jays = new HashSet();↵
|
6 | ↵ | | |
|
7 | /**↵ | | 6 | /**↵
|
8 | * @return Returns the carType.↵ | | 7 | * @return Returns the id.↵
|
9 | */↵ | | 8 | */↵
|
10 | public CarType getCarType() {↵ | | 9 | public long getId() {↵
|
11 | return carType;↵ | | 10 | return id;↵
|
12 | }↵ | | 11 | }↵
|
|
13 | /**↵ | | 12 | /**↵
|
14 | * @param carType The carType to set.↵ | | 13 | * @param id The id to set.↵
|
15 | */↵ | | 14 | */↵
|
16 | public void setCarType(CarType carType) {↵ | | 15 | public void set↵
|
17 | this.carType = carType↵ | | 16 | Id(long id) {↵
|
18 | ;↵ | | 17 | this.id = id;↵
|
19 | }↵ | | 18 | }↵
|
|
20 | /**↵ | | 19 | /**↵
|
21 | * @return Returns the id.↵ | | 20 | * @return Returns the jay.↵
|
22 | */↵ | | 21 | */↵
|
23 | public long getId() {↵ | | 22 | public Jay getJay() {↵
|
24 | return id;↵ | | 23 | return jay;↵
|
25 | }↵ | | 24 | }↵
|
|
26 | /**↵ | | 25 | /**↵
|
27 | * @param id The id to set.↵ | | 26 | * @param jay The jay to set.↵
|
28 | */↵ | | 27 | */↵
|
29 | public void setId(long id) {↵ | | 28 | public void setJay(Jay jay) {↵
|
30 | this.id = id;↵ | | 29 | this.jay = jay;↵
|
31 | }↵ | | 30 | }↵
|
|
32 | /**↵ | | 31 | /**↵
|
33 | * @return Returns the model.↵ | | 32 | * @return Returns the jays.↵
|
34 | */↵ | | 33 | */↵
|
35 | public String getModel() {↵ | | 34 | public Set getJays() {↵
|
36 | return model;↵ | | 35 | return jays;↵
|
37 | }↵ | | 36 | }↵
|
|
38 | /**↵ | | 37 | /**↵
|
39 | * @param model The model to set.↵ | | 38 | * @param jays The jays to set.↵
|
40 | */↵ | | 39 | */↵
|
41 | public void setModel(String model) {↵ | | 40 | public void set↵
|
42 | this.model = model;↵ | | |
|
43 | }↵ | | |
|
44 | public Set getCarParts() {↵ | | |
|
45 | return carParts;↵ | | |
|
46 | }↵ | | 41 | Jays(Set jays) {↵
|
| | | 42 | this.jays = jays;↵
|
| | | 43 | }↵
|
|
| | | 44 | /**↵
|
| | | 45 | * @return Returns the name.↵
|
| | | 46 | */↵
|
| | | 47 | public String getName() {↵
|
| | | 48 | return name;↵
|
| | | 49 | }↵
|
|
| | | 50 | /**↵
|
| | | 51 | * @param name The name to set.↵
|
| | | 52 | */↵
|
47 | public void setCarParts(Set carParts) {↵ | | 53 | public void set↵
|
48 | this.carParts = carParts | | 54 | Name(String name) {↵
|
| | | 55 | this.name = name
|