1 | public class A {↵ | | 1 | public class Child {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String name;↵ | | 3 | private String name;↵
|
4 | private E forward;↵ | | 4 | private ↵
|
5 | ↵ | | |
|
6 | /**↵ | | |
|
7 | * Returns the id.↵ | | |
|
8 | * @return Long↵ | | |
|
9 | */↵ | | |
|
10 | public Long getId() {↵ | | |
|
11 | return id;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | |
|
14 | /**↵ | | |
|
15 | *↵ | | 5 | Parent parent;↵
|
| | | 6 | /**↵
|
16 | Returns the name.↵ | | 7 | * @return Returns the id.↵
|
17 | * @return String↵ | | 8 | ↵
|
18 | */↵ | | 9 | */↵
|
19 | public String getName() {↵ | | 10 | public Long getId() {↵
|
20 | return name;↵ | | 11 | return id;↵
|
21 | }↵ | | 12 | }↵
|
22 | ↵ | | 13 | ↵
|
23 | /**↵ | | 14 | /**↵
|
24 | * Sets the id.↵ | | 15 | ↵
|
25 | * @param id The id to set↵ | | 16 | * @param id The id to set.↵
|
26 | */↵ | | 17 | */↵
|
27 | public void setId(Long id) {↵ | | 18 | public void setId(Long id) {↵
|
28 | this.id = id;↵ | | 19 | this.id = id;↵
|
29 | }↵ | | 20 | }↵
|
30 | ↵ | | 21 | ↵
|
31 | /**↵ | | 22 | /**↵
|
32 | * Sets the name.↵ | | 23 | * @return Returns the name.↵
|
33 | ↵ | | 24 | */↵
|
| | | 25 | public String getName() {↵
|
| | | 26 | return name;↵
|
| | | 27 | }↵
|
| | | 28 | /**↵
|
34 | * @param name The name to set↵ | | 29 | * @param name The name to set.↵
|
35 | */↵ | | 30 | */↵
|
36 | public void setName(String name) {↵ | | 31 | public void setName(String name) {↵
|
37 | this.name = name;↵ | | 32 | this.name = name;↵
|
38 | }↵ | | 33 | }↵
|
39 | ↵ | | 34 | ↵
|
40 | public E getForward() {↵ | | |
|
41 | return forward;↵ | | |
|
42 | }↵ | | |
|
|
43 | public void setForward(E e) {↵ | | |
|
44 | forward = e↵ | | 35 | /**↵
|
| | | 36 | * @return Returns the parent.↵
|
| | | 37 | */↵
|
| | | 38 | public Parent getParent() {↵
|
| | | 39 | return parent;↵
|
| | | 40 | }↵
|
| | | 41 | /**↵
|
| | | 42 | * @param parent The parent to set.↵
|
| | | 43 | */↵
|
| | | 44 | public void setParent(Parent parent) {↵
|
45 | ;↵ | | 45 | this.parent = parent;↵
|
46 | | | 46 |
|