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