1 | public class Assignable {↵ | | 1 | public class BasicNameable implements Nameable {↵
|
2 | ↵ | | 2 | ↵
|
3 | private String id;↵ | | 3 | private String name;↵
|
4 | private Collection categories;↵ | | 4 | private ↵
|
|
5 | public Collection getCategories() {↵ | | |
|
6 | return categories;↵ | | |
|
7 | }↵ | | |
|
|
8 | public ↵ | | 5 | Long id;↵
|
| | | 6 | ↵
|
| | | 7 | /**↵
|
| | | 8 | * @see Nameable#getName()↵
|
| | | 9 | */↵
|
| | | 10 | public String getName() {↵
|
| | | 11 | return name;↵
|
| | | 12 | }↵
|
| | | 13 | ↵
|
| | | 14 | /**↵
|
| | | 15 | * @see Nameable#setName()↵
|
| | | 16 | */↵
|
9 | String getId() {↵ | | 17 | public void setName(String ↵
|
10 | return id↵ | | 18 | n) {↵
|
11 | ;↵ | | 19 | name = n;↵
|
12 | }↵ | | 20 | }↵
|
| | | 21 | ↵
|
13 | public void setCategories(Collection collection) {↵ | | 22 | ↵
|
14 | categories = collection;↵ | | |
|
15 | }↵ | | |
|
| | | 23 | /**↵
|
| | | 24 | * @see Nameable#getKey()↵
|
| | | 25 | */↵
|
| | | 26 | public Long getKey() {↵
|
| | | 27 | return id;↵
|
| | | 28 | }↵
|
| | | 29 | ↵
|
| | | 30 | /**↵
|
| | | 31 | * @see Nameable#setKey()↵
|
| | | 32 | */↵
|
16 | public void setId(String string) {↵ | | 33 | public void setKey(Long k) {↵
|
17 | id = string | | 34 | id = k
|