@Test public void testHashCode() { assertTrue(getTestObject().hashCode() == getTestObject().hashCode()); DigitalService testObject = getTestObject(); assertTrue(testObject.hashCode() != 0); DigitalService differentObject = getTestObject(); differentObject.setClassifications(null); assertFalse(testObject.hashCode() == differentObject.hashCode()); }
@Override public int hashCode() { return Objects.hash(getURL(), getGUID(), getTypeId(), getTypeName(), getTypeVersion(), getTypeDescription(), getQualifiedName(), getDisplayName(), getDescription(), getAdditionalProperties(), getClassifications()); }
DigitalService extends DataPrivacyElementHeader { @Override public int hashCode() { return Objects.hash(getURL(), getGUID(), getTypeId(), getTypeName(), getTypeVersion(), getTypeDescription(), getQualifiedName(), getDisplayName(), getDescription(), getAdditionalProperties(), getClassifications()); } }
DigitalService extends DataPrivacyElementHeader { @Override public int hashCode() { return Objects.hash(getURL(), getGUID(), getTypeId(), getTypeName(), getTypeVersion(), getTypeDescription(), getQualifiedName(), getDisplayName(), getDescription(), getAdditionalProperties(), getClassifications()); } DigitalService();  DigitalService(DigitalService template); }
DigitalService extends DataPrivacyElementHeader { @Override public int hashCode() { return Objects.hash(getURL(), getGUID(), getTypeId(), getTypeName(), getTypeVersion(), getTypeDescription(), getQualifiedName(), getDisplayName(), getDescription(), getAdditionalProperties(), 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 int hashCode() { return Objects.hash(getURL(), getGUID(), getTypeId(), getTypeName(), getTypeVersion(), getTypeDescription(), getQualifiedName(), getDisplayName(), getDescription(), getAdditionalProperties(), 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();  }