1 | public class Single implements Serializable {↵ | | 1 | public class Alien {↵
|
2 | private String id;↵ | | 2 | private Long id;↵
|
3 | private String prop;↵ | | 3 | private String identity;↵
|
4 | private String string;↵ | | 4 | private String planet;↵
|
5 | private Collection several = new HashSet();↵ | | 5 | private ↵
|
6 | /**↵ | | |
|
7 | * Returns the id.↵ | | |
|
8 | * @return String↵ | | |
|
9 | */↵ | | |
|
10 | public String getId() {↵ | | |
|
11 | return id;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | |
|
14 | /**↵ | | |
|
15 | * Returns the prop.↵ | | |
|
16 | * @return String↵ | | |
|
17 | */↵ | | |
|
18 | public String getProp() {↵ | | |
|
19 | return prop;↵ | | |
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | /**↵ | | |
|
23 | * Returns the several.↵ | | |
|
24 | * @return Set↵ | | |
|
25 | */↵ | | |
|
26 | public Collection getSeveral() {↵ | | |
|
27 | return several;↵ | | |
|
28 | }↵ | | |
|
29 | ↵ | | |
|
30 | /**↵ | | |
|
31 | * Sets the id.↵ | | |
|
32 | * @param id The id to set↵ | | |
|
33 | */↵ | | 6 | String species;↵
|
| | | 7 | ↵
|
| | | 8 | public void setIdentity(String identity) {↵
|
| | | 9 | this.identity = identity;↵
|
| | | 10 | }↵
|
| | | 11 | public String getIdentity() {↵
|
| | | 12 | return identity;↵
|
| | | 13 | }↵
|
34 | public void setId(String id) {↵ | | 14 | public void setSpecies(String species) {↵
|
35 | this.id = id;↵ | | 15 | this.↵
|
36 | }↵ | | |
|
37 | ↵ | | |
|
38 | /**↵ | | |
|
39 | * Sets the prop.↵ | | |
|
40 | * @param prop The prop to set↵ | | |
|
41 | */↵ | | |
|
42 | public void setProp(String prop) {↵ | | |
|
43 | this.prop = prop;↵ | | |
|
44 | }↵ | | |
|
45 | ↵ | | |
|
46 | /**↵ | | |
|
47 | * Sets the several.↵ | | |
|
48 | * @param several The several to set↵ | | |
|
49 | */↵ | | |
|
50 | public void setSeveral(Collection several) {↵ | | |
|
51 | this.several = several;↵ | | |
|
52 | }↵ | | |
|
53 | ↵ | | |
|
54 | /**↵ | | |
|
55 | * Returns the string.↵ | | |
|
56 | * @return String↵ | | |
|
57 | */↵ | | 16 | species = species;↵
|
| | | 17 | }↵
|
| | | 18 | public String getSpecies() {↵
|
| | | 19 | return species;↵
|
| | | 20 | }↵
|
| | | 21 | public void setPlanet(String planet) {↵
|
| | | 22 | this.planet = planet;↵
|
| | | 23 | }↵
|
58 | public String getString() {↵ | | 24 | public String getPlanet() {↵
|
59 | return string;↵ | | 25 | return ↵
|
60 | }↵ | | |
|
61 | ↵ | | |
|
62 | /**↵ | | |
|
63 | * Sets the string.↵ | | |
|
64 | * @param string The string to set↵ | | |
|
65 | */↵ | | |
|
66 | public void setString(String string) {↵ | | |
|
67 | this.string = string↵ | | 26 | planet;↵
|
| | | 27 | }↵
|
| | | 28 | public void setId(Long id) {↵
|
| | | 29 | this.id = id;↵
|
| | | 30 | }↵
|
| | | 31 | public Long getId() {↵
|
68 | ;↵ | | 32 | return id;↵
|
69 | | | 33 |
|