/** * Create an instance of {@link ApprovalDate } * */ public ApprovalDate createApprovalDate() { return new ApprovalDate(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof DelegationDetails)) { return false; } DelegationDetails that = (DelegationDetails) o; if (approvalDate != null ? !approvalDate.equals(that.approvalDate) : that.approvalDate != null) { return false; } if (delegateSummary != null ? !delegateSummary.equals(that.delegateSummary) : that.delegateSummary != null) { return false; } return true; }
@Override public int hashCode() { int result = approvalDate != null ? approvalDate.hashCode() : 0; result = 31 * result + (delegateSummary != null ? delegateSummary.hashCode() : 0); return result; } }
delegateSummary.setCreditName(StringUtils.isNotBlank(receiverCreditName) ? new CreditName(receiverCreditName) : null); delegationDetails.setDelegateSummary(delegateSummary); delegationDetails.setApprovalDate(new ApprovalDate(DateUtils.convertToXMLGregorianCalendar(givenPermissionToEntity.getApprovalDate()))); givenPermissionTo.getDelegationDetails().add(delegationDetails); delegateSummary.setCreditName(StringUtils.isNotBlank(creditName) ? new CreditName(creditName) : null); delegationDetails.setDelegateSummary(delegateSummary); delegationDetails.setApprovalDate(new ApprovalDate(DateUtils.convertToXMLGregorianCalendar(givenPermissionByEntity.getApprovalDate()))); givenPermissionBy.getDelegationDetails().add(delegationDetails);
@Override public int hashCode() { int result = applicationOrcid != null ? applicationOrcid.hashCode() : 0; result = 31 * result + (applicationName != null ? applicationName.hashCode() : 0); result = 31 * result + (applicationWebsite != null ? applicationWebsite.hashCode() : 0); result = 31 * result + (approvalDate != null ? approvalDate.hashCode() : 0); result = 31 * result + (scopePaths != null ? scopePaths.hashCode() : 0); return result; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ApplicationSummary)) { return false; } ApplicationSummary that = (ApplicationSummary) o; if (applicationName != null ? !applicationName.equals(that.applicationName) : that.applicationName != null) { return false; } if (applicationOrcid != null ? !applicationOrcid.equals(that.applicationOrcid) : that.applicationOrcid != null) { return false; } if (applicationWebsite != null ? !applicationWebsite.equals(that.applicationWebsite) : that.applicationWebsite != null) { return false; } if (approvalDate != null ? !approvalDate.equals(that.approvalDate) : that.approvalDate != null) { return false; } if (scopePaths != null ? !scopePaths.equals(that.scopePaths) : that.scopePaths != null) { return false; } return true; }