1
|
package eu.dnetlib.organizations.model;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
import java.util.Objects;
|
5
|
|
6
|
public class OtherIdentifier implements Serializable {
|
7
|
|
8
|
/**
|
9
|
*
|
10
|
*/
|
11
|
private static final long serialVersionUID = -8290245353090885241L;
|
12
|
|
13
|
private String id;
|
14
|
private String type;
|
15
|
|
16
|
public String getId() {
|
17
|
return id;
|
18
|
}
|
19
|
|
20
|
public void setId(final String id) {
|
21
|
this.id = id;
|
22
|
}
|
23
|
|
24
|
public String getType() {
|
25
|
return type;
|
26
|
}
|
27
|
|
28
|
public void setType(final String type) {
|
29
|
this.type = type;
|
30
|
}
|
31
|
|
32
|
@Override
|
33
|
public int hashCode() {
|
34
|
return Objects.hash(id, type);
|
35
|
}
|
36
|
|
37
|
@Override
|
38
|
public boolean equals(final Object obj) {
|
39
|
if (this == obj) { return true; }
|
40
|
if (obj == null) { return false; }
|
41
|
if (!(obj instanceof OtherIdentifier)) { return false; }
|
42
|
final OtherIdentifier other = (OtherIdentifier) obj;
|
43
|
return Objects.equals(id, other.id) && Objects.equals(type, other.type);
|
44
|
}
|
45
|
|
46
|
}
|