1 | public class Car implements java.io.Serializable {↵ | | 1 | public class Several implements Serializable {↵
|
|
2 | private long id;↵ | | 2 | private String id;↵
|
3 | private String model;↵ | | 3 | private String prop;↵
|
4 | private CarType carType;↵ | | 4 | private ↵
|
5 | private Set carParts = new HashSet();↵ | | |
|
6 | ↵ | | 5 | Single single;↵
|
| | | 6 | private String string;↵
|
7 | /**↵ | | 7 | /**↵
|
8 | * @return Returns the carType.↵ | | 8 | * Return↵
|
9 | */↵ | | |
|
10 | public CarType getCarType↵ | | 9 | s the id.↵
|
| | | 10 | * @return String↵
|
| | | 11 | */↵
|
11 | () {↵ | | 12 | public String getId() {↵
|
12 | return carType;↵ | | 13 | return id;↵
|
13 | }↵ | | 14 | }↵
|
14 | ↵ | | 15 | ↵
|
15 | /**↵ | | 16 | /**↵
|
16 | * @param carType The carType to set.↵ | | 17 | * ↵
|
17 | */↵ | | |
|
18 | public void setCarType(CarType carType) {↵ | | |
|
19 | this.carType = carType↵ | | 18 | Returns the prop.↵
|
| | | 19 | * @return String↵
|
| | | 20 | */↵
|
| | | 21 | public String getProp() {↵
|
20 | ;↵ | | 22 | return prop;↵
|
21 | }↵ | | 23 | }↵
|
22 | ↵ | | 24 | ↵
|
23 | /**↵ | | 25 | /**↵
|
24 | * @return Returns the id.↵ | | 26 | * Returns the ↵
|
25 | */↵ | | |
|
26 | public long getId↵ | | 27 | single.↵
|
| | | 28 | * @return Single↵
|
| | | 29 | */↵
|
27 | () {↵ | | 30 | public Single getSingle() {↵
|
28 | return id;↵ | | 31 | return single;↵
|
29 | }↵ | | 32 | }↵
|
30 | ↵ | | 33 | ↵
|
31 | /**↵ | | 34 | /**↵
|
32 | ↵ | | 35 | * Sets the id.↵
|
33 | * @param id The id to set.↵ | | 36 | * @param id The id to set↵
|
34 | */↵ | | 37 | */↵
|
35 | public void setId(long id) {↵ | | 38 | public void setId(String id) {↵
|
36 | this.id = id;↵ | | 39 | this.id = id;↵
|
37 | }↵ | | 40 | }↵
|
38 | ↵ | | 41 | ↵
|
39 | /**↵ | | 42 | /**↵
|
40 | * @return Returns the model.↵ | | 43 | * Sets the prop.↵
|
| | | 44 | * @param prop The prop to set↵
|
41 | */↵ | | 45 | */↵
|
42 | public String getModel() {↵ | | 46 | public ↵
|
43 | return model↵ | | 47 | void setProp(String prop) {↵
|
44 | ;↵ | | 48 | this.prop = prop;↵
|
45 | }↵ | | 49 | }↵
|
46 | ↵ | | 50 | ↵
|
47 | /**↵ | | 51 | /**↵
|
48 | ↵ | | 52 | * Sets the single.↵
|
49 | * @param model The model to set.↵ | | 53 | * @param single The single to set↵
|
50 | */↵ | | 54 | */↵
|
51 | public void setModel(String model) {↵ | | 55 | public void set↵
|
52 | this.model = model;↵ | | |
|
53 | }↵ | | 56 | Single(Single single) {↵
|
| | | 57 | this.single = single;↵
|
| | | 58 | }↵
|
| | | 59 | ↵
|
| | | 60 | /**↵
|
| | | 61 | * Returns the string.↵
|
| | | 62 | * @return String↵
|
| | | 63 | */↵
|
54 | public Set getCarParts() {↵ | | 64 | public S↵
|
55 | return carParts;↵ | | |
|
56 | }↵ | | 65 | tring getString() {↵
|
| | | 66 | return string;↵
|
| | | 67 | }↵
|
| | | 68 | ↵
|
| | | 69 | /**↵
|
| | | 70 | * Sets the string.↵
|
| | | 71 | * @param string The string to set↵
|
| | | 72 | */↵
|
57 | public void setCarParts(Set carParts) {↵ | | 73 | public void setString(String string) {↵
|
58 | this.carParts = carParts;↵ | | 74 | this.string = string;↵
|
59 | | | 75 |
|