@Test public void testEquals() { assertTrue(getTestObject().equals(getTestObject())); InstanceAuditHeader testObject = getTestObject(); assertTrue(testObject.equals(testObject)); assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("A String")); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } InstanceAuditHeader that = (InstanceAuditHeader) objectToCompare; return getVersion() == that.getVersion() && Objects.equals(getType(), that.getType()) && getInstanceProvenanceType() == that.getInstanceProvenanceType() && Objects.equals(getMetadataCollectionId(), that.getMetadataCollectionId()) && Objects.equals(getMetadataCollectionName(), that.getMetadataCollectionName()) && Objects.equals(getReplicatedBy(), that.getReplicatedBy()) && Objects.equals(getInstanceLicense(), that.getInstanceLicense()) && Objects.equals(getCreatedBy(), that.getCreatedBy()) && Objects.equals(getUpdatedBy(), that.getUpdatedBy()) && Objects.equals(getMaintainedBy(), that.getMaintainedBy()) && Objects.equals(getCreateTime(), that.getCreateTime()) && Objects.equals(getUpdateTime(), that.getUpdateTime()) && currentStatus == that.currentStatus && getStatusOnDelete() == that.getStatusOnDelete() && Objects.equals(getMappingProperties(), that.getMappingProperties()); }
InstanceAuditHeader extends InstanceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } InstanceAuditHeader that = (InstanceAuditHeader) objectToCompare; return getVersion() == that.getVersion() && Objects.equals(getType(), that.getType()) && getInstanceProvenanceType() == that.getInstanceProvenanceType() && Objects.equals(getMetadataCollectionId(), that.getMetadataCollectionId()) && Objects.equals(getMetadataCollectionName(), that.getMetadataCollectionName()) && Objects.equals(getReplicatedBy(), that.getReplicatedBy()) && Objects.equals(getInstanceLicense(), that.getInstanceLicense()) && Objects.equals(getCreatedBy(), that.getCreatedBy()) && Objects.equals(getUpdatedBy(), that.getUpdatedBy()) && Objects.equals(getMaintainedBy(), that.getMaintainedBy()) && Objects.equals(getCreateTime(), that.getCreateTime()) && Objects.equals(getUpdateTime(), that.getUpdateTime()) && currentStatus == that.currentStatus && getStatusOnDelete() == that.getStatusOnDelete() && Objects.equals(getMappingProperties(), that.getMappingProperties()); } }
InstanceAuditHeader extends InstanceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } InstanceAuditHeader that = (InstanceAuditHeader) objectToCompare; return getVersion() == that.getVersion() && Objects.equals(getType(), that.getType()) && getInstanceProvenanceType() == that.getInstanceProvenanceType() && Objects.equals(getMetadataCollectionId(), that.getMetadataCollectionId()) && Objects.equals(getMetadataCollectionName(), that.getMetadataCollectionName()) && Objects.equals(getReplicatedBy(), that.getReplicatedBy()) && Objects.equals(getInstanceLicense(), that.getInstanceLicense()) && Objects.equals(getCreatedBy(), that.getCreatedBy()) && Objects.equals(getUpdatedBy(), that.getUpdatedBy()) && Objects.equals(getMaintainedBy(), that.getMaintainedBy()) && Objects.equals(getCreateTime(), that.getCreateTime()) && Objects.equals(getUpdateTime(), that.getUpdateTime()) && currentStatus == that.currentStatus && getStatusOnDelete() == that.getStatusOnDelete() && Objects.equals(getMappingProperties(), that.getMappingProperties()); } InstanceAuditHeader();  InstanceAuditHeader(InstanceAuditHeader template); }
InstanceAuditHeader extends InstanceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } InstanceAuditHeader that = (InstanceAuditHeader) objectToCompare; return getVersion() == that.getVersion() && Objects.equals(getType(), that.getType()) && getInstanceProvenanceType() == that.getInstanceProvenanceType() && Objects.equals(getMetadataCollectionId(), that.getMetadataCollectionId()) && Objects.equals(getMetadataCollectionName(), that.getMetadataCollectionName()) && Objects.equals(getReplicatedBy(), that.getReplicatedBy()) && Objects.equals(getInstanceLicense(), that.getInstanceLicense()) && Objects.equals(getCreatedBy(), that.getCreatedBy()) && Objects.equals(getUpdatedBy(), that.getUpdatedBy()) && Objects.equals(getMaintainedBy(), that.getMaintainedBy()) && Objects.equals(getCreateTime(), that.getCreateTime()) && Objects.equals(getUpdateTime(), that.getUpdateTime()) && currentStatus == that.currentStatus && getStatusOnDelete() == that.getStatusOnDelete() && Objects.equals(getMappingProperties(), that.getMappingProperties()); } InstanceAuditHeader();  InstanceAuditHeader(InstanceAuditHeader template); long getHeaderVersion(); void setHeaderVersion(long headerVersion); InstanceType getType(); void setType(InstanceType type); InstanceProvenanceType getInstanceProvenanceType(); void setInstanceProvenanceType(InstanceProvenanceType instanceProvenanceType); String getMetadataCollectionId(); void setMetadataCollectionId(String metadataCollectionId); String getMetadataCollectionName(); void setMetadataCollectionName(String metadataCollectionName); String getReplicatedBy(); void setReplicatedBy(String replicatedBy); String getInstanceLicense(); void setInstanceLicense(String instanceLicense); InstanceStatus getStatus(); void setStatus(InstanceStatus newStatus); String getCreatedBy(); void setCreatedBy(String createdBy); String getUpdatedBy(); void setUpdatedBy(String updatedBy); List<String> getMaintainedBy(); void setMaintainedBy(List<String> maintainedBy); Date getCreateTime(); void setCreateTime(Date createTime); Date getUpdateTime(); void setUpdateTime(Date updateTime); long getVersion(); void setVersion(long version); InstanceStatus getStatusOnDelete(); void setStatusOnDelete(InstanceStatus statusOnDelete); Map<String, Serializable> getMappingProperties(); void setMappingProperties(Map<String, Serializable> mappingProperties); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
InstanceAuditHeader extends InstanceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } InstanceAuditHeader that = (InstanceAuditHeader) objectToCompare; return getVersion() == that.getVersion() && Objects.equals(getType(), that.getType()) && getInstanceProvenanceType() == that.getInstanceProvenanceType() && Objects.equals(getMetadataCollectionId(), that.getMetadataCollectionId()) && Objects.equals(getMetadataCollectionName(), that.getMetadataCollectionName()) && Objects.equals(getReplicatedBy(), that.getReplicatedBy()) && Objects.equals(getInstanceLicense(), that.getInstanceLicense()) && Objects.equals(getCreatedBy(), that.getCreatedBy()) && Objects.equals(getUpdatedBy(), that.getUpdatedBy()) && Objects.equals(getMaintainedBy(), that.getMaintainedBy()) && Objects.equals(getCreateTime(), that.getCreateTime()) && Objects.equals(getUpdateTime(), that.getUpdateTime()) && currentStatus == that.currentStatus && getStatusOnDelete() == that.getStatusOnDelete() && Objects.equals(getMappingProperties(), that.getMappingProperties()); } InstanceAuditHeader();  InstanceAuditHeader(InstanceAuditHeader template); long getHeaderVersion(); void setHeaderVersion(long headerVersion); InstanceType getType(); void setType(InstanceType type); InstanceProvenanceType getInstanceProvenanceType(); void setInstanceProvenanceType(InstanceProvenanceType instanceProvenanceType); String getMetadataCollectionId(); void setMetadataCollectionId(String metadataCollectionId); String getMetadataCollectionName(); void setMetadataCollectionName(String metadataCollectionName); String getReplicatedBy(); void setReplicatedBy(String replicatedBy); String getInstanceLicense(); void setInstanceLicense(String instanceLicense); InstanceStatus getStatus(); void setStatus(InstanceStatus newStatus); String getCreatedBy(); void setCreatedBy(String createdBy); String getUpdatedBy(); void setUpdatedBy(String updatedBy); List<String> getMaintainedBy(); void setMaintainedBy(List<String> maintainedBy); Date getCreateTime(); void setCreateTime(Date createTime); Date getUpdateTime(); void setUpdateTime(Date updateTime); long getVersion(); void setVersion(long version); InstanceStatus getStatusOnDelete(); void setStatusOnDelete(InstanceStatus statusOnDelete); Map<String, Serializable> getMappingProperties(); void setMappingProperties(Map<String, Serializable> mappingProperties); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); static final long CURRENT_AUDIT_HEADER_VERSION; }