1 | public class Car implements java.io.Serializable {↵ | | 1 | public class Circular {↵
|
| | | 2 | ↵
|
2 | private long id;↵ | | 3 | private String id;↵
|
3 | private String model;↵ | | 4 | private ↵
|
4 | private CarType carType↵ | | 5 | Class clazz;↵
|
5 | ;↵ | | 6 | private Circular other;↵
|
6 | private Set carParts = new HashSet↵ | | 7 | private Object anyEntity;↵
|
| | | 8 | ↵
|
| | | 9 | /**↵
|
| | | 10 | * Constructor for Circular.↵
|
| | | 11 | */↵
|
| | | 12 | public Circular() {↵
|
7 | ();↵ | | 13 | super();↵
|
8 | ↵ | | 14 | }↵
|
| | | 15 | ↵
|
9 | /**↵ | | 16 | /**↵
|
10 | * @return Returns the carType.↵ | | 17 | * Returns the clazz.↵
|
| | | 18 | * @return Class↵
|
11 | */↵ | | 19 | */↵
|
12 | public CarType getCarType() {↵ | | 20 | public C↵
|
13 | return carType↵ | | 21 | lass getClazz() {↵
|
| | | 22 | return clazz;↵
|
| | | 23 | }↵
|
| | | 24 | ↵
|
| | | 25 | /**↵
|
| | | 26 | * Returns the id.↵
|
| | | 27 | * @return String↵
|
| | | 28 | */↵
|
| | | 29 | public String getId() {↵
|
14 | ;↵ | | 30 | return id;↵
|
15 | }↵ | | 31 | }↵
|
16 | ↵ | | 32 | ↵
|
17 | /**↵ | | 33 | /**↵
|
18 | ↵ | | 34 | * Sets the clazz.↵
|
19 | * @param carType The carType to set.↵ | | 35 | * @param clazz The clazz to set↵
|
20 | */↵ | | 36 | */↵
|
21 | public void setCarType(CarType carType) {↵ | | 37 | public void setClazz(Class clazz) {↵
|
22 | this.carType = carType;↵ | | 38 | this.clazz = clazz;↵
|
23 | }↵ | | 39 | }↵
|
24 | ↵ | | 40 | ↵
|
25 | /**↵ | | 41 | /**↵
|
26 | * @return Returns the id.↵ | | 42 | * ↵
|
27 | */↵ | | |
|
28 | public long getId() {↵ | | |
|
29 | return id;↵ | | |
|
30 | }↵ | | |
|
31 | /**↵ | | 43 | Sets the id.↵
|
32 | * @param id The id to set.↵ | | 44 | * @param id The id to set↵
|
33 | */↵ | | 45 | */↵
|
34 | public void setId(long id) {↵ | | 46 | public void setId(String id) {↵
|
35 | this.id = id;↵ | | 47 | this.id = id;↵
|
36 | }↵ | | 48 | }↵
|
37 | ↵ | | 49 | ↵
|
38 | /**↵ | | 50 | /**↵
|
39 | * @return Returns the model.↵ | | 51 | * Returns the other.↵
|
| | | 52 | * @return Circular↵
|
40 | */↵ | | 53 | */↵
|
41 | public String getModel() {↵ | | 54 | public Circular getOther() {↵
|
42 | return model;↵ | | 55 | return other;↵
|
43 | }↵ | | 56 | }↵
|
44 | ↵ | | 57 | ↵
|
45 | /**↵ | | 58 | /**↵
|
46 | ↵ | | 59 | * Sets the other.↵
|
47 | * @param model The model to set.↵ | | 60 | * @param other The other to set↵
|
48 | */↵ | | 61 | */↵
|
49 | public void setModel(String model) {↵ | | 62 | public void setOther(Circular other) {↵
|
50 | this.model = model;↵ | | 63 | this.↵
|
51 | }↵ | | |
|
52 | public Set getCarParts() {↵ | | |
|
53 | return carParts;↵ | | |
|
54 | }↵ | | 64 | other = other;↵
|
| | | 65 | }↵
|
| | | 66 | ↵
|
| | | 67 | /**↵
|
| | | 68 | * Returns the anyEntity.↵
|
| | | 69 | * @return Object↵
|
| | | 70 | */↵
|
| | | 71 | public Object getAnyEntity() {↵
|
| | | 72 | return anyEntity;↵
|
| | | 73 | }↵
|
| | | 74 | ↵
|
| | | 75 | /**↵
|
| | | 76 | * Sets the anyEntity.↵
|
| | | 77 | * @param anyEntity The anyEntity to set↵
|
| | | 78 | */↵
|
55 | public void setCarParts(Set carParts) {↵ | | 79 | public void setAnyEntity(Object anyEntity) {↵
|
56 | this.carParts = carParts;↵ | | 80 | this.anyEntity = anyEntity;↵
|
57 | | | 81 |
|