1
|
package eu.dnetlib.organizations.model;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
import java.util.Objects;
|
5
|
|
6
|
public class OtherIdentifierPK implements Serializable {
|
7
|
|
8
|
/**
|
9
|
*
|
10
|
*/
|
11
|
private static final long serialVersionUID = -3525128185006173748L;
|
12
|
|
13
|
private String orgId;
|
14
|
private String otherId;
|
15
|
private String type;
|
16
|
|
17
|
public String getOrgId() {
|
18
|
return orgId;
|
19
|
}
|
20
|
|
21
|
public void setOrgId(final String orgId) {
|
22
|
this.orgId = orgId;
|
23
|
}
|
24
|
|
25
|
public String getOtherId() {
|
26
|
return otherId;
|
27
|
}
|
28
|
|
29
|
public void setOtherId(final String otherId) {
|
30
|
this.otherId = otherId;
|
31
|
}
|
32
|
|
33
|
public String getType() {
|
34
|
return type;
|
35
|
}
|
36
|
|
37
|
public void setType(final String type) {
|
38
|
this.type = type;
|
39
|
}
|
40
|
|
41
|
@Override
|
42
|
public int hashCode() {
|
43
|
return Objects.hash(orgId, otherId, type);
|
44
|
}
|
45
|
|
46
|
@Override
|
47
|
public boolean equals(final Object obj) {
|
48
|
if (this == obj) { return true; }
|
49
|
if (obj == null) { return false; }
|
50
|
if (!(obj instanceof OtherIdentifierPK)) { return false; }
|
51
|
final OtherIdentifierPK other = (OtherIdentifierPK) obj;
|
52
|
return Objects.equals(orgId, other.orgId) && Objects.equals(otherId, other.otherId) && Objects.equals(type, other.type);
|
53
|
}
|
54
|
|
55
|
@Override
|
56
|
public String toString() {
|
57
|
return String.format("OtherIdentifierPK [orgId=%s, otherId=%s, type=%s]", orgId, otherId, type);
|
58
|
}
|
59
|
|
60
|
}
|