1 | public class Account implements Serializable {↵ | | 1 | public class Immutable {↵
|
2 | private String accountId;↵ | | 2 | private String foo;↵
|
3 | private Person user;↵ | | 3 | private String bar;↵
|
4 | private char type;↵ | | 4 | private ↵
|
5 | /**↵ | | |
|
6 | * @return Returns the user.↵ | | |
|
7 | */↵ | | |
|
8 | public Person getUser↵ | | 5 | String id;↵
|
| | | 6 | ↵
|
9 | () {↵ | | 7 | public String getFoo() {↵
|
10 | return user;↵ | | 8 | return foo;↵
|
11 | }↵ | | 9 | }↵
|
12 | /**↵ | | 10 | ↵
|
13 | * @param user The user to set.↵ | | |
|
14 | */↵ | | |
|
15 | public void setUser(Person user) {↵ | | 11 | public void set↵
|
16 | this.user = user;↵ | | |
|
17 | }↵ | | |
|
18 | /**↵ | | |
|
19 | * @return Returns the accountId.↵ | | |
|
20 | */↵ | | 12 | Foo(String foo) {↵
|
| | | 13 | this.foo = foo;↵
|
| | | 14 | }↵
|
| | | 15 | ↵
|
21 | public String getAccountId() {↵ | | 16 | public String getBar() {↵
|
22 | return accountId;↵ | | 17 | return ↵
|
23 | }↵ | | |
|
24 | /**↵ | | |
|
25 | * @param accountId The accountId to set.↵ | | |
|
26 | */↵ | | 18 | bar;↵
|
| | | 19 | }↵
|
| | | 20 | ↵
|
27 | public void setAccountId(String accountId) {↵ | | 21 | public void setBar(String bar) {↵
|
28 | this.accountId = accountId;↵ | | 22 | this.↵
|
29 | }↵ | | |
|
30 | /**↵ | | |
|
31 | * @return Returns the type.↵ | | |
|
32 | */↵ | | |
|
33 | public char getType↵ | | 23 | bar = bar;↵
|
| | | 24 | }↵
|
| | | 25 | ↵
|
34 | () {↵ | | 26 | public String getId() {↵
|
35 | return type;↵ | | 27 | return id;↵
|
36 | }↵ | | 28 | }↵
|
37 | /**↵ | | 29 | ↵
|
38 | * @param type The type to set.↵ | | |
|
39 | */↵ | | |
|
40 | public void setType(char type) {↵ | | 30 | public void set↵
|
41 | this.type = type↵ | | 31 | Id(String id) {↵
|
42 | ;↵ | | 32 | this.id = id;↵
|
43 | | | 33 |
|