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