1 | public class AddressImpl implements Address {
↵ | | 1 | public class Alien extends Being {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
3 | private String addressTyp↵ | | 3 | String species;↵
|
4 | e;
↵ | | 4 | private Hive hive;↵
|
5 | private Server server;↵ | | 5 | private ↵
|
6 |
↵ | | 6 | List hivemates = new ArrayList();↵
|
| | | 7 | /**↵
|
| | | 8 | * @return Returns the species.↵
|
| | | 9 | */↵
|
7 | public Long getId() {
↵ | | 10 | public String getSpecies() {↵
|
8 | return id;↵ | | 11 | return ↵
|
9 | }↵ | | |
|
|
10 | public void setId(Long id↵ | | 12 | species;↵
|
| | | 13 | }↵
|
| | | 14 | /**↵
|
| | | 15 | * @param species The species to set.↵
|
| | | 16 | */↵
|
11 | ) {
↵ | | 17 | public void setSpecies(String species) {↵
|
12 | this.id = id;↵ | | 18 | this.↵
|
13 | }↵ | | |
|
|
14 | public String getAddressTyp↵ | | 19 | species = species;↵
|
| | | 20 | }↵
|
15 | e() {
↵ | | 21 | public Hive getHive() {↵
|
16 | return addressType;
↵ | | 22 | return hive;↵
|
17 | }↵ | | 23 | }↵
|
18 |
↵ | | |
|
19 | public void setAddressType(String addressType) {
↵ | | 24 | public void setHive(Hive hive) {↵
|
20 | this.addressType = addressType;
↵ | | 25 | this.hive = hive;↵
|
21 | }↵ | | 26 | }↵
|
22 |
↵ | | |
|
23 | public Server getServer() {
↵ | | 27 | public List getHivemates() {↵
|
24 | return server;↵ | | 28 | return ↵
|
25 | }↵ | | |
|
26 |
↵ | | 29 | hivemates;↵
|
| | | 30 | }↵
|
27 | public void setServer(Server server) {
↵ | | 31 | public void setHivemates(List hivemates) {↵
|
28 | this.server = server;
↵ | | 32 | this.hivemates = hivemates;↵
|
29 | | | 33 |
|