1 | public class Immutable {↵ | | 1 | public class Being {↵
|
2 | private String foo;↵ | | 2 | private long id;↵
|
3 | private String bar;↵ | | 3 | private String identity;↵
|
4 | private String id;↵ | | 4 | private String ↵
|
5 | ↵ | | |
|
6 | public String getFoo() {↵ | | |
|
7 | return foo;↵ | | |
|
8 | }↵ | | 5 | location;↵
|
| | | 6 | private String species;↵
|
9 | ↵ | | 7 | ↵
|
10 | public void setFoo(String foo) {↵ | | 8 | public void setLocation(String location) {↵
|
11 | this.foo = foo;↵ | | 9 | this.location = location;↵
|
12 | }↵ | | 10 | }↵
|
13 | ↵ | | 11 | ↵
|
14 | public String getBar() {↵ | | 12 | public String getLocation() {↵
|
15 | return bar;↵ | | 13 | return location;↵
|
16 | }↵ | | 14 | }↵
|
17 | ↵ | | 15 | ↵
|
18 | public void setBar(String bar) {↵ | | 16 | public void setSpecies(String species) {↵
|
19 | this.bar = bar;↵ | | 17 | this.species = species;↵
|
20 | }↵ | | 18 | }↵
|
21 | ↵ | | 19 | ↵
|
22 | public String getId() {↵ | | 20 | public String getSpecies() {↵
|
23 | return id;↵ | | 21 | return species;↵
|
24 | }↵ | | 22 | }↵
|
25 | ↵ | | 23 | ↵
|
26 | public void setId(String id) {↵ | | 24 | public void setIdentity(String identity) {↵
|
27 | this.id = id | | 25 | this.identity = identity;↵
|
| | | 26 | }↵
|
| | | 27 | public String getIdentity() {↵
|
| | | 28 | return identity
|