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

Method hashCode

src/main/java/org/orcid/jaxb/model/message/Work.java:531–550  ·  view source on GitHub ↗

Note that put-code is not part of hashcode. This is important for avoid creation of duplication works.

()

Source from the content-addressed store, hash-verified

529 * creation of duplication works.
530 */
531 @Override
532 public int hashCode() {
533 final int prime = 31;
534 int result = 1;
535 result = prime * result + ((publicationDate == null) ? 0 : publicationDate.hashCode());
536 result = prime * result + ((shortDescription == null) ? 0 : shortDescription.hashCode());
537 result = prime * result + ((url == null) ? 0 : url.hashCode());
538 result = prime * result + ((visibility == null) ? 0 : visibility.hashCode());
539 result = prime * result + ((workCitation == null) ? 0 : workCitation.hashCode());
540 result = prime * result + ((workContributors == null) ? 0 : workContributors.hashCode());
541 result = prime * result + ((workExternalIdentifiers == null) ? 0 : workExternalIdentifiers.hashCode());
542 result = prime * result + ((workSource == null) ? 0 : workSource.hashCode());
543 result = prime * result + ((source == null) ? 0 : source.hashCode());
544 result = prime * result + ((workTitle == null) ? 0 : workTitle.hashCode());
545 result = prime * result + ((workType == null) ? 0 : workType.hashCode());
546 result = prime * result + ((journalTitle == null) ? 0 : journalTitle.hashCode());
547 result = prime * result + ((languageCode == null) ? 0 : languageCode.hashCode());
548 result = prime * result + ((country == null) ? 0 : country.hashCode());
549 return result;
550 }
551
552 @Override
553 public CreatedDate getCreatedDate() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected