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