1 | public class Y {↵ | | 1 | public abstract class Item {↵
|
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
|
3 | private String x;↵ | | 3 | private String name;↵
|
|
4 | private X theX;↵ | | 4 | private Folder parent;↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Returns the id.↵ | | 6 | * @return Returns the ↵
|
7 | * @return Long↵ | | 7 | parent.↵
|
8 | */↵ | | 8 | */↵
|
|
9 | public Long getId() {↵ | | 9 | public Folder getParent() {↵
|
|
10 | return id;↵ | | 10 | return parent;↵
|
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Returns the x.↵ | | 13 | * ↵
|
14 | * @return String↵ | | 14 | @param parent The parent to set.↵
|
15 | */↵ | | 15 | */↵
|
|
16 | public String getX() {↵ | | 16 | public void setParent(Folder parent) {↵
|
|
17 | return x;↵ | | 17 | ↵
|
18 | }↵ | | |
|
|
19 | /**↵ | | |
|
20 | * Sets the id.↵ | | |
|
21 | * @param id The id to set↵ | | |
|
22 | */↵ | | |
|
23 | public void setId(Long id↵ | | 18 | this.parent = parent;↵
|
|
| | | 19 | }↵
|
|
| | | 20 | /**↵
|
| | | 21 | * @return Returns the id.↵
|
| | | 22 | */↵
|
|
24 | ) {↵ | | 23 | public Long getId() {↵
|
|
25 | this.id = id;↵ | | 24 | return id;↵
|
|
26 | }↵ | | 25 | }↵
|
|
27 | /**↵ | | 26 | /**↵
|
28 | * Sets the x.↵ | | 27 | ↵
|
29 | * @param x The x to set↵ | | 28 | * @param id The id to set.↵
|
30 | */↵ | | 29 | */↵
|
|
31 | public void setX(String x) {↵ | | 30 | public void setId(Long id) {↵
|
|
32 | this.x = x;↵ | | 31 | this.id = id;↵
|
|
33 | }↵ | | 32 | }↵
|
|
34 | /**↵ | | 33 | /**↵
|
35 | * @return↵ | | 34 | * @return Returns the name.↵
|
36 | */↵ | | 35 | */↵
|
|
37 | public X getTheX() {↵ | | 36 | public String getName() {↵
|
|
38 | return theX;↵ | | 37 | return name;↵
|
|
39 | }↵ | | 38 | }↵
|
|
40 | /**↵ | | 39 | /**↵
|
41 | * @param x↵ | | 40 | * @param name The name to set.↵
|
42 | */↵ | | 41 | */↵
|
|
43 | public void setTheX(X x) {↵ | | 42 | public void setName(String name) {↵
|
|
44 | theX = x | | 43 | this.name = name
|