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