- @Override
- public boolean equals(Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (!(obj instanceof ComponentMetadataDataDefinition)) {
- return false;
- }
- if (!super.equals(obj)) {
- return false;
- }
- if (getClass() != obj.getClass()) {
- return false;
- }
- ServiceMetadataDataDefinition other = (ServiceMetadataDataDefinition) obj;
- if (distributionStatus == null) {
- if (other.distributionStatus != null) {
- return false;
- }
- } else if (!distributionStatus.equals(other.distributionStatus)) {
- return false;
- }
- if (ecompGeneratedNaming == null) {
- if (other.ecompGeneratedNaming != null) {
- return false;
- }
- } else if (!ecompGeneratedNaming.equals(other.ecompGeneratedNaming)) {
- return false;
- }
- if (namingPolicy == null) {
- if (other.namingPolicy != null) {
- return false;
- }
- } else if (!namingPolicy.equals(other.namingPolicy)) {
- return false;
- }
- if (serviceType == null) {
- if (other.serviceType != null) {
- return false;
- }
- } else if (!serviceType.equals(other.serviceType)) {
- return false;
- }
- if (serviceRole == null) {
- if (other.serviceRole != null) {
- return false;
- }
- } else if (!serviceRole.equals(other.serviceRole)) {
- return false;
- }
- if (environmentContext == null) {
- if (other.environmentContext != null) {
- return false;
- }
- } else if (!environmentContext.equals(other.environmentContext)) {
- return false;
- }
- if (instantiationType == null) {
- if (other.instantiationType != null) {
- return false;
- }
- } else if (!instantiationType.equals(other.instantiationType)) {
- return false;
- }
- if (serviceFunction == null){
- if (other.serviceFunction != null) {
- return false;
- } else if (!serviceFunction.equals(other.serviceFunction))
- return false;
- }
- return super.equals(obj);