@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); ElementType sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); ElementType differentObject = getTestObject(); differentObject.setElementTypeId("Different"); assertFalse(getTestObject().equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof ElementType)) { return false; } ElementType that = (ElementType) objectToCompare; return getElementTypeVersion() == that.getElementTypeVersion() && Objects.equals(getElementTypeId(), that.getElementTypeId()) && Objects.equals(getElementTypeName(), that.getElementTypeName()) && Objects.equals(getElementSuperTypeNames(), that.getElementSuperTypeNames()) && Objects.equals(getElementTypeDescription(), that.getElementTypeDescription()) && Objects.equals(getElementSourceServer(), that.getElementSourceServer()) && getElementOrigin() == that.getElementOrigin() && Objects.equals(getElementHomeMetadataCollectionId(), that.getElementHomeMetadataCollectionId()) && Objects.equals(getElementHomeMetadataCollectionName(), that.getElementHomeMetadataCollectionName()) && Objects.equals(getElementLicense(), that.getElementLicense()); }
ElementType extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof ElementType)) { return false; } ElementType that = (ElementType) objectToCompare; return getElementTypeVersion() == that.getElementTypeVersion() && Objects.equals(getElementTypeId(), that.getElementTypeId()) && Objects.equals(getElementTypeName(), that.getElementTypeName()) && Objects.equals(getElementSuperTypeNames(), that.getElementSuperTypeNames()) && Objects.equals(getElementTypeDescription(), that.getElementTypeDescription()) && Objects.equals(getElementSourceServer(), that.getElementSourceServer()) && getElementOrigin() == that.getElementOrigin() && Objects.equals(getElementHomeMetadataCollectionId(), that.getElementHomeMetadataCollectionId()) && Objects.equals(getElementHomeMetadataCollectionName(), that.getElementHomeMetadataCollectionName()) && Objects.equals(getElementLicense(), that.getElementLicense()); } }
ElementType extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof ElementType)) { return false; } ElementType that = (ElementType) objectToCompare; return getElementTypeVersion() == that.getElementTypeVersion() && Objects.equals(getElementTypeId(), that.getElementTypeId()) && Objects.equals(getElementTypeName(), that.getElementTypeName()) && Objects.equals(getElementSuperTypeNames(), that.getElementSuperTypeNames()) && Objects.equals(getElementTypeDescription(), that.getElementTypeDescription()) && Objects.equals(getElementSourceServer(), that.getElementSourceServer()) && getElementOrigin() == that.getElementOrigin() && Objects.equals(getElementHomeMetadataCollectionId(), that.getElementHomeMetadataCollectionId()) && Objects.equals(getElementHomeMetadataCollectionName(), that.getElementHomeMetadataCollectionName()) && Objects.equals(getElementLicense(), that.getElementLicense()); } ElementType();  ElementType(ElementType templateType); }
ElementType extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof ElementType)) { return false; } ElementType that = (ElementType) objectToCompare; return getElementTypeVersion() == that.getElementTypeVersion() && Objects.equals(getElementTypeId(), that.getElementTypeId()) && Objects.equals(getElementTypeName(), that.getElementTypeName()) && Objects.equals(getElementSuperTypeNames(), that.getElementSuperTypeNames()) && Objects.equals(getElementTypeDescription(), that.getElementTypeDescription()) && Objects.equals(getElementSourceServer(), that.getElementSourceServer()) && getElementOrigin() == that.getElementOrigin() && Objects.equals(getElementHomeMetadataCollectionId(), that.getElementHomeMetadataCollectionId()) && Objects.equals(getElementHomeMetadataCollectionName(), that.getElementHomeMetadataCollectionName()) && Objects.equals(getElementLicense(), that.getElementLicense()); } ElementType();  ElementType(ElementType templateType); void setElementTypeId(String elementTypeId); String getElementTypeId(); void setElementTypeName(String elementTypeName); String getElementTypeName(); void setElementSuperTypeNames(List<String> elementSuperTypeNames); List<String> getElementSuperTypeNames(); void setElementTypeVersion(long elementTypeVersion); long getElementTypeVersion(); void setElementTypeDescription(String elementTypeDescription); String getElementTypeDescription(); void setElementSourceServer(String elementSourceServer); String getElementSourceServer(); void setElementOrigin(ElementOrigin elementOrigin); ElementOrigin getElementOrigin(); String getElementHomeMetadataCollectionId(); void setElementHomeMetadataCollectionId(String elementHomeMetadataCollectionId); String getElementHomeMetadataCollectionName(); void setElementHomeMetadataCollectionName(String elementHomeMetadataCollectionName); String getElementLicense(); void setElementLicense(String elementLicense); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
ElementType extends PropertyBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof ElementType)) { return false; } ElementType that = (ElementType) objectToCompare; return getElementTypeVersion() == that.getElementTypeVersion() && Objects.equals(getElementTypeId(), that.getElementTypeId()) && Objects.equals(getElementTypeName(), that.getElementTypeName()) && Objects.equals(getElementSuperTypeNames(), that.getElementSuperTypeNames()) && Objects.equals(getElementTypeDescription(), that.getElementTypeDescription()) && Objects.equals(getElementSourceServer(), that.getElementSourceServer()) && getElementOrigin() == that.getElementOrigin() && Objects.equals(getElementHomeMetadataCollectionId(), that.getElementHomeMetadataCollectionId()) && Objects.equals(getElementHomeMetadataCollectionName(), that.getElementHomeMetadataCollectionName()) && Objects.equals(getElementLicense(), that.getElementLicense()); } ElementType();  ElementType(ElementType templateType); void setElementTypeId(String elementTypeId); String getElementTypeId(); void setElementTypeName(String elementTypeName); String getElementTypeName(); void setElementSuperTypeNames(List<String> elementSuperTypeNames); List<String> getElementSuperTypeNames(); void setElementTypeVersion(long elementTypeVersion); long getElementTypeVersion(); void setElementTypeDescription(String elementTypeDescription); String getElementTypeDescription(); void setElementSourceServer(String elementSourceServer); String getElementSourceServer(); void setElementOrigin(ElementOrigin elementOrigin); ElementOrigin getElementOrigin(); String getElementHomeMetadataCollectionId(); void setElementHomeMetadataCollectionId(String elementHomeMetadataCollectionId); String getElementHomeMetadataCollectionName(); void setElementHomeMetadataCollectionName(String elementHomeMetadataCollectionName); String getElementLicense(); void setElementLicense(String elementLicense); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }