1 | public class E {↵ | | 1 | public class Human {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private float amount;↵ | | 3 | private String name;↵
|
4 | private A reverse;↵ | | 4 | private char sex;↵
|
5 | private Set as;↵ | | 5 | private S↵
|
6 | /**↵ | | |
|
7 | * Returns the amount.↵ | | |
|
8 | * @return float↵ | | |
|
9 | */↵ | | |
|
10 | public float getAmount() {↵ | | |
|
11 | return amount;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | |
|
14 | /**↵ | | |
|
15 | * Returns the id.↵ | | |
|
16 | * @return long↵ | | |
|
17 | */↵ | | 6 | tring address;↵
|
| | | 7 | ↵
|
| | | 8 | public void setAddress(String address) {↵
|
| | | 9 | this.address = address;↵
|
| | | 10 | }↵
|
18 | public Long getId() {↵ | | 11 | public String getAddress() {↵
|
19 | return id;↵ | | 12 | return ↵
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | /**↵ | | |
|
23 | * Sets the amount.↵ | | |
|
24 | * @param amount The amount to set↵ | | |
|
25 | */↵ | | |
|
26 | public void setAmount(float amount) {↵ | | |
|
27 | this.amount = amount;↵ | | |
|
28 | }↵ | | |
|
29 | ↵ | | |
|
30 | /**↵ | | |
|
31 | * Sets the id.↵ | | |
|
32 | * @param id The id to set↵ | | |
|
33 | */↵ | | 13 | address;↵
|
| | | 14 | }↵
|
| | | 15 | public void setSex(char sex) {↵
|
| | | 16 | this.sex = sex;↵
|
| | | 17 | }↵
|
| | | 18 | public char getSex() {↵
|
| | | 19 | return sex;↵
|
| | | 20 | }↵
|
34 | public void setId(Long id) {↵ | | 21 | public void set↵
|
35 | this.id = id↵ | | 22 | Name(String name) {↵
|
36 | ;↵ | | 23 | this.name = name;↵
|
37 | }↵ | | 24 | }↵
|
38 | ↵ | | 25 | ↵
|
39 | public A getReverse() {↵ | | 26 | public String getName() {↵
|
40 | return reverse;↵ | | 27 | return name;↵
|
41 | }↵ | | 28 | }↵
|
|
42 | public void setReverse(A a) {↵ | | 29 | public void set↵
|
43 | reverse↵ | | 30 | Id(Long id) {↵
|
44 | = a;↵ | | 31 | this.id = id;↵
|
45 | }↵ | | 32 | }↵
|
|
46 | /**↵ | | |
|
47 | * @return Returns the as.↵ | | |
|
48 | */↵ | | |
|
49 | public Set getAs() {↵ | | 33 | public Long getId() {↵
|
50 | return as;↵ | | 34 | return ↵
|
51 | }↵ | | |
|
|
52 | /**↵ | | |
|
53 | * @param as The as to set.↵ | | |
|
54 | */↵ | | |
|
55 | public void setAs(Set as) {↵ | | |
|
56 | this.as = as;↵ | | 35 | id;↵
|
57 | | | 36 |
|