/** * Compares this association with the given object for equality. * * @return {@code true} if both objects are equal. */ @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (obj instanceof MultiValuedAssociation) { final MultiValuedAssociation that = (MultiValuedAssociation) obj; return role.equals(that.role) && values.equals(that.values); } return false; } }
/** * Compares this association with the given object for equality. * * @return {@code true} if both objects are equal. */ @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (obj instanceof MultiValuedAssociation) { final MultiValuedAssociation that = (MultiValuedAssociation) obj; return role.equals(that.role) && values.equals(that.values); } return false; } }
/** * Compares this attribute with the given object for equality. * * @return {@code true} if both objects are equal. */ @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (obj instanceof MultiValuedAttribute<?>) { final MultiValuedAttribute<?> that = (MultiValuedAttribute<?>) obj; return type.equals(that.type) && values.equals(that.values) && characteristicsReadOnly().equals(that.characteristicsReadOnly()); } return false; } }
/** * Compares this attribute with the given object for equality. * * @return {@code true} if both objects are equal. */ @Override public boolean equals(final Object obj) { if (obj == this) { return true; } if (obj instanceof MultiValuedAttribute<?>) { final MultiValuedAttribute<?> that = (MultiValuedAttribute<?>) obj; return type.equals(that.type) && values.equals(that.values) && characteristicsReadOnly().equals(that.characteristicsReadOnly()); } return false; } }