Project

General

Profile

« Previous | Next » 

Revision 56978

- failedCallback
- update of dli objects
- WorkAround for duplicated sets from people repository

View differences:

CnrCollection.java
1 1
package eu.dnetlib.data.mdstore.plugins.objects;
2 2

  
3
import java.util.Objects;
4

  
3 5
import javax.xml.bind.annotation.XmlAccessType;
4 6
import javax.xml.bind.annotation.XmlAccessorType;
5 7
import javax.xml.bind.annotation.XmlElement;
......
37 39
	public void setName(final String name) {
38 40
		this.name = name;
39 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
	}
40 56
}

Also available in: Unified diff