Revision fdb645e1
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/model/TypedEntityReference.java | ||
---|---|---|
15 | 15 |
* @since Jun 12, 2017 |
16 | 16 |
* |
17 | 17 |
*/ |
18 |
public class TypedEntityReference extends EntityReference { |
|
18 |
public class TypedEntityReference<T> extends EntityReference {
|
|
19 | 19 |
|
20 | 20 |
/** |
21 | 21 |
* @param id |
22 | 22 |
* @param label |
23 | 23 |
*/ |
24 |
public TypedEntityReference(Class type, int id, String label) { |
|
24 |
public TypedEntityReference(Class<T> type, int id, String label) {
|
|
25 | 25 |
super(id, label); |
26 | 26 |
this.type = type; |
27 | 27 |
} |
... | ... | |
29 | 29 |
/** |
30 | 30 |
* @return the type |
31 | 31 |
*/ |
32 |
public Class getType() { |
|
32 |
public Class<T> getType() {
|
|
33 | 33 |
return type; |
34 | 34 |
} |
35 | 35 |
|
36 | 36 |
/** |
37 | 37 |
* @param type the type to set |
38 | 38 |
*/ |
39 |
public void setType(Class type) { |
|
39 |
public void setType(Class<T> type) {
|
|
40 | 40 |
this.type = type; |
41 | 41 |
} |
42 | 42 |
|
43 |
private Class type; |
|
43 |
private Class<T> type;
|
|
44 | 44 |
|
45 | 45 |
|
46 | 46 |
|
... | ... | |
58 | 58 |
/** |
59 | 59 |
* {@inheritDoc} |
60 | 60 |
*/ |
61 |
@SuppressWarnings("rawtypes") |
|
61 | 62 |
@Override |
62 | 63 |
public boolean equals(Object obj) { |
63 | 64 |
try { |
Also available in: Unified diff
ref #6724 implementing SpecimenTypeDesignationWorkingSetDTO as editor dto and modifying the TypeDesignationConverter accordingly