1 | public class Hive {↵ | | 1 | public class Thing {↵
|
2 | private long id;↵ | | 2 | private long id;↵
|
3 | private Location location;↵ | | 3 | private String description;↵
|
4 | private List members = new ArrayList();↵ | | 4 | private Being owner;↵
|
| | | 5 | /**↵
|
| | | 6 | * @return Returns the description.↵
|
| | | 7 | */↵
|
5 | public List getMembers() {↵ | | 8 | public ↵
|
6 | return members;↵ | | |
|
7 | }↵ | | |
|
8 | public void setMembers(List hives) {↵ | | |
|
9 | this.members = hives;↵ | | |
|
10 | }↵ | | |
|
11 | public long getId() {↵ | | |
|
12 | return id;↵ | | |
|
13 | }↵ | | 9 | String getDescription() {↵
|
| | | 10 | return description;↵
|
| | | 11 | }↵
|
| | | 12 | /**↵
|
| | | 13 | * @param description The description to set.↵
|
| | | 14 | */↵
|
| | | 15 | public void setDescription(String description) {↵
|
| | | 16 | this.description = description;↵
|
| | | 17 | }↵
|
| | | 18 | /**↵
|
| | | 19 | * @return Returns the id.↵
|
| | | 20 | */↵
|
| | | 21 | public long getId() {↵
|
| | | 22 | return id;↵
|
| | | 23 | }↵
|
| | | 24 | /**↵
|
| | | 25 | * @param id The id to set.↵
|
| | | 26 | */↵
|
14 | public void setId(long id) {↵ | | 27 | public void setId(long id) {↵
|
15 | this.id = id;↵ | | 28 | this.id = id;↵
|
16 | }↵ | | 29 | }↵
|
17 | public Location getLocation() {↵ | | 30 | ↵
|
18 | return location;↵ | | |
|
19 | }↵ | | |
|
20 | public void setLocation(Location location↵ | | 31 | /**↵
|
| | | 32 | * @return Returns the owner.↵
|
| | | 33 | */↵
|
| | | 34 | public Being getOwner() {↵
|
| | | 35 | return owner;↵
|
| | | 36 | }↵
|
| | | 37 | /**↵
|
| | | 38 | * @param owner The owner to set.↵
|
| | | 39 | */↵
|
21 | ) {↵ | | 40 | public void setOwner(Being owner) {↵
|
22 | this.location = location;↵ | | 41 | this.owner = owner;↵
|
23 | | | 42 |
|