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