summaryrefslogtreecommitdiffstats
path: root/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/ServiceListJson.java
diff options
context:
space:
mode:
Diffstat (limited to 'ONAP-REST/src/main/java/org/onap/policy/rest/adapter/ServiceListJson.java')
-rw-r--r--ONAP-REST/src/main/java/org/onap/policy/rest/adapter/ServiceListJson.java170
1 files changed, 85 insertions, 85 deletions
diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/ServiceListJson.java b/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/ServiceListJson.java
index f80f51908..0ca4ce6b9 100644
--- a/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/ServiceListJson.java
+++ b/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/ServiceListJson.java
@@ -24,90 +24,90 @@ package org.onap.policy.rest.adapter;
public class ServiceListJson {
- protected String name;
- protected String description;
- protected String type;
- protected String transportProtocol;
- protected String appProtocol;
- protected String ports;
- // name
- public String getName() {
- return name;
- }
-
- public void setName(String value) {
- this.name = value;
- }
-
- @Override
- public boolean equals(Object obj){
- if(obj == null){
- return false;
- }
- if(this.getClass() != obj.getClass()){
- return false;
- }
- ServiceListJson servobj=(ServiceListJson) obj;
- if(this.getName().equals(servobj.getName())){
- return true;
- }
- return false;
- }
-
- @Override
- public int hashCode() {
- if(name!=null){
- return Integer.valueOf(name.charAt(0)+(name.charAt(1)));
- }else{
- return 0;
- }
- }
-
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- // type
- public String getType() {
- return type;
- }
-
- public void setType(String value) {
- this.type = value;
- }
-
- // transportProtocol
- public String getTransportProtocol() {
- return transportProtocol;
- }
-
- public void setTransportProtocol(String value) {
- this.transportProtocol = value;
- }
-
- // appProtocol
- public String getAppProtocol() {
- return appProtocol;
- }
-
- public void setAppProtocol(String value) {
- this.appProtocol = value;
- }
-
- // ports
- public String getPorts() {
- return ports;
- }
-
- public void setPorts(String value) {
- this.ports = value;
- }
-
-
+ protected String name;
+ protected String description;
+ protected String type;
+ protected String transportProtocol;
+ protected String appProtocol;
+ protected String ports;
+ // name
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ @Override
+ public boolean equals(Object obj){
+ if(obj == null){
+ return false;
+ }
+ if(this.getClass() != obj.getClass()){
+ return false;
+ }
+ ServiceListJson servobj=(ServiceListJson) obj;
+ if(this.getName().equals(servobj.getName())){
+ return true;
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ if(name!=null){
+ return Integer.valueOf(name.charAt(0)+(name.charAt(1)));
+ }else{
+ return 0;
+ }
+ }
+
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ // type
+ public String getType() {
+ return type;
+ }
+
+ public void setType(String value) {
+ this.type = value;
+ }
+
+ // transportProtocol
+ public String getTransportProtocol() {
+ return transportProtocol;
+ }
+
+ public void setTransportProtocol(String value) {
+ this.transportProtocol = value;
+ }
+
+ // appProtocol
+ public String getAppProtocol() {
+ return appProtocol;
+ }
+
+ public void setAppProtocol(String value) {
+ this.appProtocol = value;
+ }
+
+ // ports
+ public String getPorts() {
+ return ports;
+ }
+
+ public void setPorts(String value) {
+ this.ports = value;
+ }
+
+
}