Revision f5295f3f
Added by Andreas Kohlbecker almost 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/OriginalSourceBase.java | ||
---|---|---|
150 | 150 |
} |
151 | 151 |
} |
152 | 152 |
|
153 |
//*********************************** EQUALS *********************************************************/ |
|
154 |
|
|
155 |
/** |
|
156 |
* {@inheritDoc} |
|
157 |
*/ |
|
158 |
@Override |
|
159 |
public boolean equalsByShallowCompare(ReferencedEntityBase other) { |
|
160 |
|
|
161 |
if(!super.equalsByShallowCompare(other)) { |
|
162 |
return false; |
|
163 |
} |
|
164 |
OriginalSourceBase<T> theOther = (OriginalSourceBase<T>)other; |
|
165 |
if(!StringUtils.equals(this.getIdInSource(), theOther.getIdInSource()) |
|
166 |
|| !StringUtils.equals(this.getIdNamespace(), theOther.getIdNamespace())) { |
|
167 |
return false; |
|
168 |
} |
|
169 |
|
|
170 |
return true; |
|
171 |
} |
|
172 |
|
|
153 | 173 |
} |
Also available in: Unified diff
#4366 Transmissionengine aggregation of source references