@Test public void testEquals() { assertTrue(getTestObject().equals(getTestObject())); TypeDefAttribute testObject = getTestObject(); assertTrue(testObject.equals(testObject)); assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("AString")); assertFalse(getTestObject().equals(new CollectionDef())); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } TypeDefAttribute that = (TypeDefAttribute) objectToCompare; return valuesMinCount == that.valuesMinCount && valuesMaxCount == that.valuesMaxCount && isIndexable == that.isIndexable && isUnique == that.isUnique && Objects.equals(attributeName, that.attributeName) && Objects.equals(attributeType, that.attributeType) && attributeStatus == that.attributeStatus && Objects.equals(replacedByAttribute, that.replacedByAttribute) && Objects.equals(attributeDescription, that.attributeDescription) && Objects.equals(attributeDescriptionGUID, that.attributeDescriptionGUID) && cardinality == that.cardinality && Objects.equals(defaultValue, that.defaultValue) && Objects.equals(externalStandardMappings, that.externalStandardMappings); }
TypeDefAttribute extends TypeDefElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } TypeDefAttribute that = (TypeDefAttribute) objectToCompare; return valuesMinCount == that.valuesMinCount && valuesMaxCount == that.valuesMaxCount && isIndexable == that.isIndexable && isUnique == that.isUnique && Objects.equals(attributeName, that.attributeName) && Objects.equals(attributeType, that.attributeType) && attributeStatus == that.attributeStatus && Objects.equals(replacedByAttribute, that.replacedByAttribute) && Objects.equals(attributeDescription, that.attributeDescription) && Objects.equals(attributeDescriptionGUID, that.attributeDescriptionGUID) && cardinality == that.cardinality && Objects.equals(defaultValue, that.defaultValue) && Objects.equals(externalStandardMappings, that.externalStandardMappings); } }
TypeDefAttribute extends TypeDefElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } TypeDefAttribute that = (TypeDefAttribute) objectToCompare; return valuesMinCount == that.valuesMinCount && valuesMaxCount == that.valuesMaxCount && isIndexable == that.isIndexable && isUnique == that.isUnique && Objects.equals(attributeName, that.attributeName) && Objects.equals(attributeType, that.attributeType) && attributeStatus == that.attributeStatus && Objects.equals(replacedByAttribute, that.replacedByAttribute) && Objects.equals(attributeDescription, that.attributeDescription) && Objects.equals(attributeDescriptionGUID, that.attributeDescriptionGUID) && cardinality == that.cardinality && Objects.equals(defaultValue, that.defaultValue) && Objects.equals(externalStandardMappings, that.externalStandardMappings); } TypeDefAttribute();  TypeDefAttribute(TypeDefAttribute template); }
TypeDefAttribute extends TypeDefElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } TypeDefAttribute that = (TypeDefAttribute) objectToCompare; return valuesMinCount == that.valuesMinCount && valuesMaxCount == that.valuesMaxCount && isIndexable == that.isIndexable && isUnique == that.isUnique && Objects.equals(attributeName, that.attributeName) && Objects.equals(attributeType, that.attributeType) && attributeStatus == that.attributeStatus && Objects.equals(replacedByAttribute, that.replacedByAttribute) && Objects.equals(attributeDescription, that.attributeDescription) && Objects.equals(attributeDescriptionGUID, that.attributeDescriptionGUID) && cardinality == that.cardinality && Objects.equals(defaultValue, that.defaultValue) && Objects.equals(externalStandardMappings, that.externalStandardMappings); } TypeDefAttribute();  TypeDefAttribute(TypeDefAttribute template); String getAttributeName(); void setAttributeName(String attributeName); AttributeTypeDef getAttributeType(); void setAttributeType(AttributeTypeDef attributeType); TypeDefAttributeStatus getAttributeStatus(); void setAttributeStatus(TypeDefAttributeStatus attributeStatus); String getReplacedByAttribute(); void setReplacedByAttribute(String replacedByAttribute); String getAttributeDescription(); void setAttributeDescription(String attributeDescription); String getAttributeDescriptionGUID(); void setAttributeDescriptionGUID(String attributeDescriptionGUID); AttributeCardinality getAttributeCardinality(); void setAttributeCardinality(AttributeCardinality attributeCardinality); int getValuesMinCount(); void setValuesMinCount(int valuesMinCount); int getValuesMaxCount(); void setValuesMaxCount(int valuesMaxCount); boolean isUnique(); void setUnique(boolean unique); boolean isIndexable(); void setIndexable(boolean indexable); String getDefaultValue(); void setDefaultValue(String defaultValue); List<ExternalStandardMapping> getExternalStandardMappings(); void setExternalStandardMappings(List<ExternalStandardMapping> externalStandardMappings); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
TypeDefAttribute extends TypeDefElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } TypeDefAttribute that = (TypeDefAttribute) objectToCompare; return valuesMinCount == that.valuesMinCount && valuesMaxCount == that.valuesMaxCount && isIndexable == that.isIndexable && isUnique == that.isUnique && Objects.equals(attributeName, that.attributeName) && Objects.equals(attributeType, that.attributeType) && attributeStatus == that.attributeStatus && Objects.equals(replacedByAttribute, that.replacedByAttribute) && Objects.equals(attributeDescription, that.attributeDescription) && Objects.equals(attributeDescriptionGUID, that.attributeDescriptionGUID) && cardinality == that.cardinality && Objects.equals(defaultValue, that.defaultValue) && Objects.equals(externalStandardMappings, that.externalStandardMappings); } TypeDefAttribute();  TypeDefAttribute(TypeDefAttribute template); String getAttributeName(); void setAttributeName(String attributeName); AttributeTypeDef getAttributeType(); void setAttributeType(AttributeTypeDef attributeType); TypeDefAttributeStatus getAttributeStatus(); void setAttributeStatus(TypeDefAttributeStatus attributeStatus); String getReplacedByAttribute(); void setReplacedByAttribute(String replacedByAttribute); String getAttributeDescription(); void setAttributeDescription(String attributeDescription); String getAttributeDescriptionGUID(); void setAttributeDescriptionGUID(String attributeDescriptionGUID); AttributeCardinality getAttributeCardinality(); void setAttributeCardinality(AttributeCardinality attributeCardinality); int getValuesMinCount(); void setValuesMinCount(int valuesMinCount); int getValuesMaxCount(); void setValuesMaxCount(int valuesMaxCount); boolean isUnique(); void setUnique(boolean unique); boolean isIndexable(); void setIndexable(boolean indexable); String getDefaultValue(); void setDefaultValue(String defaultValue); List<ExternalStandardMapping> getExternalStandardMappings(); void setExternalStandardMappings(List<ExternalStandardMapping> externalStandardMappings); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }