1 | public class Address {↵ | | 1 | public class SpaceShip {↵
|
2 | private Long id;↵ | | 2 | private Integer id;↵
|
3 | private String address;↵ | | 3 | private String name;↵
|
4 | private String zip;↵ | | 4 | private String model;↵
|
5 | private String country;↵ | | 5 | private ↵
|
6 | private Person pers↵ | | 6 | double speed;↵
|
7 | on;↵ | | 7 | private Dimension dimensions;↵
|
8 | /**↵ | | |
|
9 | * @return Returns the id.↵ | | |
|
10 | */↵ | | |
|
11 | public Long getId() {↵ | | 8 | public Dimension getDimensions() {↵
|
12 | return id;↵ | | 9 | return ↵
|
13 | }↵ | | |
|
14 | /**↵ | | |
|
15 | * @param id The id to set.↵ | | |
|
16 | */↵ | | |
|
17 | public void setId(Long id) {↵ | | |
|
18 | this.id = id;↵ | | |
|
19 | }↵ | | |
|
20 | /**↵ | | |
|
21 | * @return Returns the person.↵ | | |
|
22 | */↵ | | |
|
23 | public Person getPerson↵ | | 10 | dimensions;↵
|
| | | 11 | }↵
|
|
| | | 12 | public void setDimensions(Dimension dimensions) {↵
|
| | | 13 | this.dimensions = dimensions;↵
|
| | | 14 | }↵
|
|
24 | () {↵ | | 15 | public Integer getId() {↵
|
25 | return person;↵ | | 16 | return id;↵
|
26 | }↵ | | 17 | }↵
|
27 | /**↵ | | |
|
28 | * @param person The person to set.↵ | | |
|
29 | */↵ | | |
|
30 | public void setPerson(Person person) {↵ | | |
|
31 | this.person = person;↵ | | |
|
32 | }↵ | | |
|
33 | /**↵ | | |
|
34 | * @return Returns the address.↵ | | |
|
35 | */↵ | | |
|
| | | 18 | public void setId(Integer id) {↵
|
| | | 19 | this.id = id;↵
|
| | | 20 | }↵
|
|
36 | public String getAddress() {↵ | | 21 | public String getModel() {↵
|
37 | return address;↵ | | 22 | return ↵
|
38 | }↵ | | |
|
39 | /**↵ | | |
|
40 | * @param address The address to set.↵ | | |
|
41 | */↵ | | 23 | model;↵
|
| | | 24 | }↵
|
|
42 | public void setAddress(String address) {↵ | | 25 | public void setModel(String model) {↵
|
43 | this.address = address;↵ | | 26 | this.↵
|
44 | }↵ | | |
|
45 | /**↵ | | |
|
46 | * @return Returns the country.↵ | | |
|
47 | */↵ | | 27 | model = model;↵
|
| | | 28 | }↵
|
|
48 | public String getCountry() {↵ | | 29 | public String getName() {↵
|
49 | return country;↵ | | 30 | return ↵
|
50 | }↵ | | |
|
51 | /**↵ | | |
|
52 | * @param country The country to set.↵ | | |
|
53 | */↵ | | 31 | name;↵
|
| | | 32 | }↵
|
|
54 | public void setCountry(String country) {↵ | | 33 | public void setName(String name) {↵
|
55 | this.country = country;↵ | | 34 | this.↵
|
56 | }↵ | | |
|
57 | /**↵ | | |
|
58 | * @return Returns the zip.↵ | | |
|
59 | */↵ | | 35 | name = name;↵
|
| | | 36 | }↵
|
|
60 | public String getZip() {↵ | | 37 | public double getSpeed() {↵
|
61 | return zip;↵ | | 38 | return speed;↵
|
62 | }↵ | | 39 | }↵
|
63 | /**↵ | | |
|
64 | * @param zip The zip to set.↵ | | |
|
65 | */↵ | | |
|
66 | public void setZip(String zip↵ | | |
|
67 | ) {↵ | | 40 | public void setSpeed(double speed) {↵
|
68 | this.zip = zip;↵ | | 41 | this.speed = speed;↵
|
69 | | | 42 |
|