1 | public class Document {
↵ | | 1 | public class Immutable {↵
|
2 | private Long id;
↵ | | 2 | private String foo;↵
|
3 | private String location;↵ | | 3 | private String ↵
|
4 | private User owner;↵ | | |
|
5 |
↵ | | 4 | bar;↵
|
| | | 5 | private String id;↵
|
| | | 6 | ↵
|
6 | public Long getId() {
↵ | | 7 | public String getFoo() {↵
|
7 | return id;↵ | | 8 | return ↵
|
8 | }↵ | | |
|
9 |
↵ | | 9 | foo;↵
|
| | | 10 | }↵
|
| | | 11 | ↵
|
10 | public void setId(Long id) {
↵ | | 12 | public void setFoo(String foo) {↵
|
11 | this.id = id;↵ | | 13 | this.↵
|
12 | }↵ | | |
|
13 |
↵ | | 14 | foo = foo;↵
|
| | | 15 | }↵
|
| | | 16 | ↵
|
14 | public String getLocation() {
↵ | | 17 | public String getBar() {↵
|
15 | return location;↵ | | 18 | return ↵
|
16 | }↵ | | |
|
17 |
↵ | | 19 | bar;↵
|
| | | 20 | }↵
|
| | | 21 | ↵
|
18 | public void setLocation(String location) {
↵ | | 22 | public void setBar(String bar) {↵
|
19 | this.location = location;↵ | | 23 | this.↵
|
20 | }↵ | | |
|
|
21 | public User getOwner↵ | | 24 | bar = bar;↵
|
| | | 25 | }↵
|
| | | 26 | ↵
|
22 | () {
↵ | | 27 | public String getId() {↵
|
23 | return owner;↵ | | 28 | return ↵
|
24 | }↵ | | |
|
25 |
↵ | | 29 | id;↵
|
| | | 30 | }↵
|
| | | 31 | ↵
|
26 | public void setOwner(User owner) {
↵ | | 32 | public void setId(String id) {↵
|
27 | this.owner = owner | | 33 | this.id = id
|