1 | public class MyInterfaceImpl implements MyInterface {
↵ | | 1 | public class Alien extends Being {↵
|
2 | private String key1;
↵ | | 2 | private String species;↵
|
3 | private String key2;↵ | | 3 | private ↵
|
4 | private String name;↵ | | |
|
5 |
↵ | | 4 | Hive hive;↵
|
| | | 5 | private List hivemates = new ArrayList();↵
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the species.↵
|
| | | 8 | */↵
|
6 | public String getKey1() {
↵ | | 9 | public String getSpecies() {↵
|
7 | return key1;↵ | | 10 | return ↵
|
8 | }↵ | | |
|
9 |
↵ | | 11 | species;↵
|
| | | 12 | }↵
|
| | | 13 | /**↵
|
| | | 14 | * @param species The species to set.↵
|
| | | 15 | */↵
|
10 | public void setKey1(String key1) {
↵ | | 16 | public void setSpecies(String species) {↵
|
11 | this.key1 = key1;↵ | | 17 | this.↵
|
12 | }↵ | | |
|
13 |
↵ | | 18 | species = species;↵
|
| | | 19 | }↵
|
14 | public String getKey2() {
↵ | | 20 | public Hive getHive() {↵
|
15 | return key2;↵ | | 21 | return ↵
|
16 | }↵ | | |
|
17 |
↵ | | 22 | hive;↵
|
| | | 23 | }↵
|
18 | public void setKey2(String key2) {
↵ | | 24 | public void setHive(Hive hive) {↵
|
19 | this.key2 = key2;↵ | | 25 | this.↵
|
20 | }↵ | | |
|
|
21 | public String getName↵ | | 26 | hive = hive;↵
|
| | | 27 | }↵
|
22 | () {
↵ | | 28 | public List getHivemates() {↵
|
23 | return name;↵ | | 29 | return ↵
|
24 | }↵ | | |
|
25 |
↵ | | 30 | hivemates;↵
|
| | | 31 | }↵
|
26 | public void setName(String name) {
↵ | | 32 | public void setHivemates(List hivemates) {↵
|
27 | this.name = name | | 33 | this.hivemates = hivemates
|