1 | public class Employee extends Person {↵ | | 1 | public static final class Ternary {↵
|
2 | private String title;↵ | | 2 | private String name;↵
|
3 | private BigDecimal salary;↵ | | 3 | private Foo foo;↵
|
4 | private Employee manager;↵ | | 4 | private Glarch glarch;↵
|
5 | /**↵ | | 5 | /**↵
|
6 | * @return Returns the title.↵ | | 6 | * Returns the ↵
|
| | | 7 | foo.↵
|
| | | 8 | * @return Foo↵
|
7 | */↵ | | 9 | */↵
|
8 | public String getTitle() {↵ | | 10 | public Foo getFoo() {↵
|
9 | return title;↵ | | 11 | return foo;↵
|
10 | }↵ | | 12 | }↵
|
11 | ↵ | | 13 | ↵
|
12 | /**↵ | | 14 | /**↵
|
13 | * @param title The title to set.↵ | | 15 | * ↵
|
| | | 16 | Returns the glarch.↵
|
| | | 17 | * @return Glarch↵
|
14 | */↵ | | 18 | */↵
|
15 | public void setTitle(String title) {↵ | | 19 | public ↵
|
16 | this.title = title↵ | | 20 | Glarch getGlarch() {↵
|
17 | ;↵ | | 21 | return glarch;↵
|
18 | }↵ | | 22 | }↵
|
19 | ↵ | | 23 | ↵
|
20 | /**↵ | | 24 | /**↵
|
21 | * @return Returns the manager.↵ | | 25 | * Returns the ↵
|
| | | 26 | name.↵
|
| | | 27 | * @return String↵
|
22 | */↵ | | 28 | */↵
|
23 | public Employee getManager() {↵ | | 29 | public String getName() {↵
|
24 | return manager;↵ | | 30 | return name;↵
|
25 | }↵ | | 31 | }↵
|
26 | ↵ | | 32 | ↵
|
27 | /**↵ | | 33 | /**↵
|
28 | * @param manager The manager↵ | | 34 | * Sets the foo.↵
|
29 | to set.↵ | | 35 | * @param foo The foo to set↵
|
30 | */↵ | | 36 | */↵
|
31 | public void setManager(Employee manager) {↵ | | 37 | public void setFoo(Foo foo) {↵
|
32 | this.manager = manager;↵ | | 38 | this.foo = foo;↵
|
33 | }↵ | | 39 | }↵
|
34 | ↵ | | 40 | ↵
|
35 | /**↵ | | 41 | /**↵
|
36 | * @return Returns the salary.↵ | | 42 | * Sets the glarch.↵
|
37 | ↵ | | 43 | * @param glarch The glarch to set↵
|
38 | */↵ | | 44 | */↵
|
39 | public BigDecimal getSalary() {↵ | | 45 | public void setGlarch(Glarch glarch) {↵
|
40 | return salary;↵ | | 46 | this.glarch = glarch;↵
|
41 | }↵ | | 47 | }↵
|
42 | ↵ | | 48 | ↵
|
43 | /**↵ | | 49 | /**↵
|
44 | ↵ | | 50 | * Sets the name.↵
|
45 | * @param salary The salary to set.↵ | | 51 | * @param name The name to set↵
|
46 | */↵ | | 52 | */↵
|
47 | public void setSalary(BigDecimal salary) {↵ | | 53 | public void setName(String name) {↵
|
48 | this.salary = salary | | 54 | this.name = name
|