1 | public static final class Ternary {↵ | | 1 | public ↵
|
2 | ↵ | | 2 | class Parent {↵
|
| | | 3 | private Long id;↵
|
3 | private String name;↵ | | 4 | private String name;↵
|
4 | private Foo foo;↵ | | 5 | private ↵
|
5 | private Glarch glarch;↵ | | 6 | Collection children = new HashSet();↵
|
6 | /**↵ | | 7 | /**↵
|
7 | * Returns the foo.↵ | | 8 | * @return Returns the ↵
|
8 | * @return Foo↵ | | |
|
9 | ↵ | | 9 | children.↵
|
10 | */↵ | | 10 | */↵
|
11 | public Foo getFoo() {↵ | | 11 | public Collection getChildren() {↵
|
12 | return foo;↵ | | 12 | return children;↵
|
13 | }↵ | | 13 | }↵
|
14 | ↵ | | 14 | ↵
|
15 | /**↵ | | 15 | /**↵
|
16 | * Returns the glarch.↵ | | 16 | * ↵
|
17 | * @return Glarch↵ | | |
|
18 | ↵ | | 17 | @param children The children to set.↵
|
19 | */↵ | | 18 | */↵
|
20 | public Glarch getGlarch() {↵ | | 19 | public ↵
|
21 | return glarch↵ | | 20 | void setChildren(Collection children) {↵
|
22 | ;↵ | | 21 | this.children = children;↵
|
23 | }↵ | | 22 | }↵
|
24 | ↵ | | 23 | ↵
|
25 | /**↵ | | 24 | /**↵
|
26 | * Returns the name.↵ | | 25 | * @return↵
|
27 | * @return String↵ | | |
|
28 | ↵ | | 26 | Returns the id.↵
|
29 | */↵ | | 27 | */↵
|
30 | public String getName() {↵ | | 28 | public Long getId() {↵
|
31 | return name;↵ | | 29 | return id;↵
|
32 | }↵ | | 30 | }↵
|
33 | ↵ | | 31 | ↵
|
34 | /**↵ | | |
|
35 | * Sets the foo.↵ | | |
|
36 | ↵ | | 32 | /**↵
|
37 | * @param foo The foo to set↵ | | 33 | * @param id The id to set.↵
|
38 | */↵ | | 34 | */↵
|
39 | public void setFoo(Foo foo) {↵ | | 35 | public void setId(Long id) {↵
|
40 | this.foo = foo;↵ | | 36 | this.id = id;↵
|
41 | }↵ | | 37 | }↵
|
42 | ↵ | | 38 | ↵
|
43 | /**↵ | | 39 | /**↵
|
44 | * Sets the glarch.↵ | | 40 | * ↵
|
45 | * @param glarch The glarch to set↵ | | |
|
46 | ↵ | | 41 | @return Returns the name.↵
|
47 | */↵ | | 42 | */↵
|
48 | public void setGlarch(Glarch glarch) {↵ | | 43 | public ↵
|
49 | this.glarch = glarch↵ | | 44 | String getName() {↵
|
50 | ;↵ | | 45 | return name;↵
|
51 | }↵ | | 46 | }↵
|
52 | ↵ | | 47 | ↵
|
53 | /**↵ | | 48 | /**↵
|
54 | * Sets the name.↵ | | 49 | ↵
|
55 | * @param name The name to set↵ | | 50 | * @param name The name to set.↵
|
56 | */↵ | | 51 | */↵
|
57 | public void setName(String name) {↵ | | 52 | public void setName(String name) {↵
|
58 | this.name = name | | 53 | this.name = name
|