1 | public class Immutable {↵ | | 1 | public class Document extends Item {↵
|
|
2 | private String foo;↵ | | 2 | private ↵
|
3 | private String bar;↵ | | |
|
4 | private String id;↵ | | |
|
5 | ↵ | | |
|
6 | public String getFoo↵ | | 3 | Blob content;↵
|
|
| | | 4 | private Calendar modified;↵
|
|
| | | 5 | private Calendar created;↵
|
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the created.↵
|
| | | 8 | */↵
|
|
7 | () {↵ | | 9 | public Calendar getCreated() {↵
|
|
8 | return foo;↵ | | 10 | return ↵
|
9 | }↵ | | |
|
10 | ↵ | | |
|
11 | public void setFoo(String foo↵ | | 11 | created;↵
|
|
| | | 12 | }↵
|
|
| | | 13 | /**↵
|
| | | 14 | * @param created The created to set.↵
|
| | | 15 | */↵
|
|
12 | ) {↵ | | 16 | public void setCreated(Calendar created) {↵
|
|
13 | this.foo = foo;↵ | | 17 | this.created = created;↵
|
|
14 | }↵ | | 18 | }↵
|
|
15 | ↵ | | 19 | ↵
|
16 | public String getBar↵ | | 20 | /**↵
|
| | | 21 | * @return Returns the modified.↵
|
| | | 22 | */↵
|
|
17 | () {↵ | | 23 | public Calendar getModified() {↵
|
|
18 | return bar;↵ | | 24 | return modified;↵
|
|
19 | }↵ | | 25 | }↵
|
|
20 | ↵ | | 26 | ↵
|
21 | public void setBar(String bar↵ | | 27 | /**↵
|
| | | 28 | * @param modified The modified to set.↵
|
| | | 29 | */↵
|
|
22 | ) {↵ | | 30 | public void setModified(Calendar modified) {↵
|
|
23 | this.bar = bar;↵ | | 31 | this.modified = modified;↵
|
|
24 | }↵ | | 32 | }↵
|
|
25 | ↵ | | 33 | ↵
|
26 | public String getId↵ | | 34 | /**↵
|
| | | 35 | * @return Returns the content.↵
|
| | | 36 | */↵
|
|
27 | () {↵ | | 37 | public Blob getContent() {↵
|
|
28 | return id;↵ | | 38 | return content;↵
|
|
29 | }↵ | | 39 | }↵
|
|
30 | ↵ | | 40 | ↵
|
31 | public void setId(String id↵ | | 41 | /**↵
|
| | | 42 | * @param content The content to set.↵
|
| | | 43 | */↵
|
|
32 | ) {↵ | | 44 | public void setContent(Blob content) {↵
|
|
33 | this.id = id | | 45 | this.content = content
|