1 | public class Eye {↵ | | 1 | public class Human {↵
|
2 | private long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private Jay jay;↵ | | 4 | private char sex;↵
|
5 | private Set jays = new HashSet();↵ | | 5 | private S↵
|
|
6 | /**↵ | | |
|
7 | * @return Returns the id.↵ | | |
|
8 | */↵ | | |
|
9 | public long getId() {↵ | | |
|
10 | return id;↵ | | |
|
11 | }↵ | | |
|
|
12 | /**↵ | | |
|
13 | * @param id The id to set.↵ | | |
|
14 | */↵ | | 6 | tring address;↵
|
| | | 7 | ↵
|
15 | public void setId(long id) {↵ | | 8 | public void setAddress(String address) {↵
|
16 | this.id = id;↵ | | 9 | this.↵
|
17 | }↵ | | |
|
|
18 | /**↵ | | |
|
19 | * @return Returns the jay.↵ | | |
|
20 | */↵ | | |
|
21 | public Jay getJay() {↵ | | |
|
22 | return jay;↵ | | |
|
23 | }↵ | | |
|
|
24 | /**↵ | | |
|
25 | * @param jay The jay to set.↵ | | |
|
26 | */↵ | | 10 | address = address;↵
|
| | | 11 | }↵
|
| | | 12 | public String getAddress() {↵
|
| | | 13 | return address;↵
|
| | | 14 | }↵
|
27 | public void setJay(Jay jay) {↵ | | 15 | public void set↵
|
28 | this.jay = jay;↵ | | |
|
29 | }↵ | | |
|
|
30 | /**↵ | | |
|
31 | * @return Returns the jays.↵ | | |
|
32 | */↵ | | |
|
33 | public Set getJays() {↵ | | |
|
34 | return jays;↵ | | |
|
35 | }↵ | | |
|
|
36 | /**↵ | | |
|
37 | * @param jays The jays to set.↵ | | |
|
38 | */↵ | | 16 | Sex(char sex) {↵
|
| | | 17 | this.sex = sex;↵
|
| | | 18 | }↵
|
| | | 19 | public char getSex() {↵
|
| | | 20 | return sex;↵
|
| | | 21 | }↵
|
39 | public void setJays(Set jays) {↵ | | 22 | public void set↵
|
40 | this.jays = jays;↵ | | |
|
41 | }↵ | | |
|
|
42 | /**↵ | | |
|
43 | * @return Returns the↵ | | 23 | Name(String name) {↵
|
44 | name.↵ | | 24 | this.name = name;↵
|
45 | */↵ | | 25 | }↵
|
46 | public String getName() {↵ | | 26 | public String getName() {↵
|
47 | return name;↵ | | 27 | return name;↵
|
48 | }↵ | | 28 | }↵
|
|
49 | /**↵ | | |
|
50 | * @param name The name to set.↵ | | |
|
51 | */↵ | | |
|
52 | public void setName(String name) {↵ | | |
|
53 | this.name = name | | 29 | public void setId(Long id) {↵
|
| | | 30 | this.id = id;↵
|
| | | 31 | }↵
|
| | | 32 | public Long getId() {↵
|
| | | 33 | return id
|