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