Replaced all tabs with spaces in java and pom.xml
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / onap / so / bpmn / servicedecomposition / bbobjects / ServiceSubscription.java
index 56f9551..05199b7 100644 (file)
@@ -23,54 +23,57 @@ package org.onap.so.bpmn.servicedecomposition.bbobjects;
 import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
-
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonRootName;
 import org.apache.commons.lang3.builder.EqualsBuilder;
 import org.apache.commons.lang3.builder.HashCodeBuilder;
 import org.onap.so.bpmn.servicedecomposition.ShallowCopy;
-
 import javax.persistence.Id;
 
 @JsonRootName("service-subscription")
-public class ServiceSubscription implements Serializable, ShallowCopy<ServiceSubscription>{
+public class ServiceSubscription implements Serializable, ShallowCopy<ServiceSubscription> {
+
+    private static final long serialVersionUID = 9064449329296611436L;
+
+    @Id
+    @JsonProperty("service-type")
+    private String serviceType;
+    @JsonProperty("temp-ub-sub-account-id")
+    private String tempUbSubAccountId;
+    @JsonProperty("service-instances")
+    private List<ServiceInstance> serviceInstances = new ArrayList<ServiceInstance>();
+
+    public String getServiceType() {
+        return serviceType;
+    }
+
+    public void setServiceType(String serviceType) {
+        this.serviceType = serviceType;
+    }
+
+    public String getTempUbSubAccountId() {
+        return tempUbSubAccountId;
+    }
 
-       private static final long serialVersionUID = 9064449329296611436L;
+    public void setTempUbSubAccountId(String tempUbSubAccountId) {
+        this.tempUbSubAccountId = tempUbSubAccountId;
+    }
 
-       @Id
-       @JsonProperty("service-type")
-       private String serviceType;
-       @JsonProperty("temp-ub-sub-account-id")
-       private String tempUbSubAccountId;
-       @JsonProperty("service-instances")
-       private List<ServiceInstance> serviceInstances = new ArrayList<ServiceInstance>();
+    public List<ServiceInstance> getServiceInstances() {
+        return serviceInstances;
+    }
 
-       public String getServiceType() {
-               return serviceType;
-       }
-       public void setServiceType(String serviceType) {
-               this.serviceType = serviceType;
-       }
-       public String getTempUbSubAccountId() {
-               return tempUbSubAccountId;
-       }
-       public void setTempUbSubAccountId(String tempUbSubAccountId) {
-               this.tempUbSubAccountId = tempUbSubAccountId;
-       }
-       public List<ServiceInstance> getServiceInstances() {
-               return serviceInstances;
-       }
+    @Override
+    public boolean equals(final Object other) {
+        if (!(other instanceof ServiceSubscription)) {
+            return false;
+        }
+        ServiceSubscription castOther = (ServiceSubscription) other;
+        return new EqualsBuilder().append(serviceType, castOther.serviceType).isEquals();
+    }
 
-       @Override
-       public boolean equals(final Object other) {
-               if (!(other instanceof ServiceSubscription)) {
-                       return false;
-               }
-               ServiceSubscription castOther = (ServiceSubscription) other;
-               return new EqualsBuilder().append(serviceType, castOther.serviceType).isEquals();
-       }
-       @Override
-       public int hashCode() {
-               return new HashCodeBuilder().append(serviceType).toHashCode();
-       }
+    @Override
+    public int hashCode() {
+        return new HashCodeBuilder().append(serviceType).toHashCode();
+    }
 }