MCPcopy Create free account
hub / github.com/ORCID/orcid-model / equals

Method equals

src/main/java/org/orcid/jaxb/model/message/Source.java:168–188  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

166 }
167
168 @Override
169 public boolean equals(Object obj) {
170 if (this == obj)
171 return true;
172 if (obj == null)
173 return false;
174 if (getClass() != obj.getClass())
175 return false;
176 Source other = (Source) obj;
177 if (sourceClientId == null) {
178 if (other.sourceClientId != null)
179 return false;
180 } else if (!sourceClientId.equals(other.sourceClientId))
181 return false;
182 if (sourceOrcid == null) {
183 if (other.sourceOrcid != null)
184 return false;
185 } else if (!sourceOrcid.equals(other.sourceOrcid))
186 return false;
187 return true;
188 }
189
190}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected