1 | public class ProductLine {↵ | | 1 | public class Alien extends Being {↵
|
|
2 | private String id;↵ | | 2 | private String species;↵
|
3 | private String description;↵ | | 3 | private ↵
|
4 | private Set models = new HashSet();↵ | | |
|
5 | ↵ | | 4 | Hive hive;↵
|
| | | 5 | private List hivemates = new ArrayList();↵
|
| | | 6 | /**↵
|
| | | 7 | * @return Returns the species.↵
|
| | | 8 | */↵
|
6 | public String getDescription() {↵ | | 9 | public String getSpecies() {↵
|
7 | return description;↵ | | 10 | return ↵
|
8 | }↵ | | 11 | species;↵
|
| | | 12 | }↵
|
| | | 13 | /**↵
|
| | | 14 | * @param species The species to set.↵
|
| | | 15 | */↵
|
9 | public void setDescription(String description) {↵ | | 16 | public void set↵
|
10 | this.description = description↵ | | 17 | Species(String species) {↵
|
11 | ;↵ | | 18 | this.species = species;↵
|
12 | }↵ | | 19 | }↵
|
13 | public String getId() {↵ | | 20 | public Hive getHive() {↵
|
14 | return id;↵ | | 21 | return hive;↵
|
15 | }↵ | | 22 | }↵
|
16 | public void setId(String id) {↵ | | 23 | public void setHive(Hive hive) {↵
|
17 | this.id = id;↵ | | 24 | this.hive = hive;↵
|
18 | }↵ | | 25 | }↵
|
19 | public Set getModels() {↵ | | 26 | public List getHivemates() {↵
|
20 | return models;↵ | | 27 | return hivemates;↵
|
21 | }↵ | | 28 | }↵
|
22 | public void setModels(Set models) {↵ | | 29 | public void set↵
|
23 | this.models = model↵ | | 30 | Hivemates(List hivemates) {↵
|
24 | s | | 31 | this.hivemates = hivemates
|