1
|
package eu.dnetlib.data.mdstore.plugins.objects;
|
2
|
|
3
|
import java.util.Objects;
|
4
|
|
5
|
import javax.xml.bind.annotation.XmlAccessType;
|
6
|
import javax.xml.bind.annotation.XmlAccessorType;
|
7
|
import javax.xml.bind.annotation.XmlElement;
|
8
|
|
9
|
@XmlAccessorType(XmlAccessType.FIELD)
|
10
|
public class CnrCollection {
|
11
|
|
12
|
@XmlElement(name = "code")
|
13
|
public String code;
|
14
|
@XmlElement(name = "name")
|
15
|
public String name;
|
16
|
@XmlElement(name = "acronym")
|
17
|
public String acronym;
|
18
|
|
19
|
public String getCode() {
|
20
|
return code;
|
21
|
}
|
22
|
|
23
|
public void setCode(final String code) {
|
24
|
this.code = code;
|
25
|
}
|
26
|
|
27
|
public String getAcronym() {
|
28
|
return acronym;
|
29
|
}
|
30
|
|
31
|
public void setAcronym(final String acronym) {
|
32
|
this.acronym = acronym;
|
33
|
}
|
34
|
|
35
|
public String getName() {
|
36
|
return name;
|
37
|
}
|
38
|
|
39
|
public void setName(final String name) {
|
40
|
this.name = name;
|
41
|
}
|
42
|
|
43
|
@Override
|
44
|
public int hashCode() {
|
45
|
return Objects.hash(code);
|
46
|
}
|
47
|
|
48
|
@Override
|
49
|
public boolean equals(final Object obj) {
|
50
|
if (this == obj) { return true; }
|
51
|
if (obj == null) { return false; }
|
52
|
if (!(obj instanceof CnrCollection)) { return false; }
|
53
|
final CnrCollection other = (CnrCollection) obj;
|
54
|
return Objects.equals(code, other.code);
|
55
|
}
|
56
|
}
|