@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); DigitalService sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); DigitalService differentObject = getTestObject(); differentObject.setDescription("Different"); assertFalse(getTestObject().equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof DigitalService)) { return false; } DigitalService asset = (DigitalService) objectToCompare; return getTypeVersion() == asset.getTypeVersion() && Objects.equals(getURL(), asset.getURL()) && Objects.equals(getGUID(), asset.getGUID()) && Objects.equals(getTypeId(), asset.getTypeId()) && Objects.equals(getTypeName(), asset.getTypeName()) && Objects.equals(getTypeDescription(), asset.getTypeDescription()) && Objects.equals(getQualifiedName(), asset.getQualifiedName()) && Objects.equals(getDisplayName(), asset.getDisplayName()) && Objects.equals(getDescription(), asset.getDescription()) && Objects.equals(getAdditionalProperties(), asset.getAdditionalProperties()) && Objects.equals(getClassifications(), asset.getClassifications()); }
DigitalService extends DataPrivacyElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof DigitalService)) { return false; } DigitalService asset = (DigitalService) objectToCompare; return getTypeVersion() == asset.getTypeVersion() && Objects.equals(getURL(), asset.getURL()) && Objects.equals(getGUID(), asset.getGUID()) && Objects.equals(getTypeId(), asset.getTypeId()) && Objects.equals(getTypeName(), asset.getTypeName()) && Objects.equals(getTypeDescription(), asset.getTypeDescription()) && Objects.equals(getQualifiedName(), asset.getQualifiedName()) && Objects.equals(getDisplayName(), asset.getDisplayName()) && Objects.equals(getDescription(), asset.getDescription()) && Objects.equals(getAdditionalProperties(), asset.getAdditionalProperties()) && Objects.equals(getClassifications(), asset.getClassifications()); } }
DigitalService extends DataPrivacyElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof DigitalService)) { return false; } DigitalService asset = (DigitalService) objectToCompare; return getTypeVersion() == asset.getTypeVersion() && Objects.equals(getURL(), asset.getURL()) && Objects.equals(getGUID(), asset.getGUID()) && Objects.equals(getTypeId(), asset.getTypeId()) && Objects.equals(getTypeName(), asset.getTypeName()) && Objects.equals(getTypeDescription(), asset.getTypeDescription()) && Objects.equals(getQualifiedName(), asset.getQualifiedName()) && Objects.equals(getDisplayName(), asset.getDisplayName()) && Objects.equals(getDescription(), asset.getDescription()) && Objects.equals(getAdditionalProperties(), asset.getAdditionalProperties()) && Objects.equals(getClassifications(), asset.getClassifications()); } DigitalService();  DigitalService(DigitalService template); }
DigitalService extends DataPrivacyElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof DigitalService)) { return false; } DigitalService asset = (DigitalService) objectToCompare; return getTypeVersion() == asset.getTypeVersion() && Objects.equals(getURL(), asset.getURL()) && Objects.equals(getGUID(), asset.getGUID()) && Objects.equals(getTypeId(), asset.getTypeId()) && Objects.equals(getTypeName(), asset.getTypeName()) && Objects.equals(getTypeDescription(), asset.getTypeDescription()) && Objects.equals(getQualifiedName(), asset.getQualifiedName()) && Objects.equals(getDisplayName(), asset.getDisplayName()) && Objects.equals(getDescription(), asset.getDescription()) && Objects.equals(getAdditionalProperties(), asset.getAdditionalProperties()) && Objects.equals(getClassifications(), asset.getClassifications()); } DigitalService();  DigitalService(DigitalService template); String getURL(); void setURL(String url); String getGUID(); void setGUID(String guid); String getTypeId(); void setTypeId(String typeId); String getTypeName(); void setTypeName(String typeName); long getTypeVersion(); void setTypeVersion(long typeVersion); String getTypeDescription(); void setTypeDescription(String typeDescription); String getQualifiedName(); void setQualifiedName(String qualifiedName); String getDisplayName(); void setDisplayName(String displayName); String getDescription(); void setDescription(String description); DigitalServiceImplementationStyle getImplementationStyle(); void setImplementationStyle(DigitalServiceImplementationStyle implementationStyle); DigitalServiceStatus getStatus(); void setStatus(DigitalServiceStatus status); DigitalServiceVisibility getVisibility(); void setVisibility(DigitalServiceVisibility visibility); DigitalServiceResponsibility getResponsibility(); void setResponsibility(DigitalServiceResponsibility responsibility); Map<String, Object> getAdditionalProperties(); void setAdditionalProperties(Map<String, Object> additionalProperties); List<Classification> getClassifications(); void setClassifications(List<Classification> classifications); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
DigitalService extends DataPrivacyElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof DigitalService)) { return false; } DigitalService asset = (DigitalService) objectToCompare; return getTypeVersion() == asset.getTypeVersion() && Objects.equals(getURL(), asset.getURL()) && Objects.equals(getGUID(), asset.getGUID()) && Objects.equals(getTypeId(), asset.getTypeId()) && Objects.equals(getTypeName(), asset.getTypeName()) && Objects.equals(getTypeDescription(), asset.getTypeDescription()) && Objects.equals(getQualifiedName(), asset.getQualifiedName()) && Objects.equals(getDisplayName(), asset.getDisplayName()) && Objects.equals(getDescription(), asset.getDescription()) && Objects.equals(getAdditionalProperties(), asset.getAdditionalProperties()) && Objects.equals(getClassifications(), asset.getClassifications()); } DigitalService();  DigitalService(DigitalService template); String getURL(); void setURL(String url); String getGUID(); void setGUID(String guid); String getTypeId(); void setTypeId(String typeId); String getTypeName(); void setTypeName(String typeName); long getTypeVersion(); void setTypeVersion(long typeVersion); String getTypeDescription(); void setTypeDescription(String typeDescription); String getQualifiedName(); void setQualifiedName(String qualifiedName); String getDisplayName(); void setDisplayName(String displayName); String getDescription(); void setDescription(String description); DigitalServiceImplementationStyle getImplementationStyle(); void setImplementationStyle(DigitalServiceImplementationStyle implementationStyle); DigitalServiceStatus getStatus(); void setStatus(DigitalServiceStatus status); DigitalServiceVisibility getVisibility(); void setVisibility(DigitalServiceVisibility visibility); DigitalServiceResponsibility getResponsibility(); void setResponsibility(DigitalServiceResponsibility responsibility); Map<String, Object> getAdditionalProperties(); void setAdditionalProperties(Map<String, Object> additionalProperties); List<Classification> getClassifications(); void setClassifications(List<Classification> classifications); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }