Update license header in appc-flow-controller file
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / onap / appc / flow / controller / data / Parameters.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * =============================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * ============LICENSE_END=========================================================
20  */
21 package org.onap.appc.flow.controller.data;
22
23 import com.fasterxml.jackson.annotation.JsonProperty;
24
25 public class Parameters {
26
27
28     @JsonProperty("name")
29     private String paramName ;
30
31     @JsonProperty("value")
32     private String paramValue ;
33
34     public String getParamValue() {
35         return paramValue;
36     }
37     public void setParamValue(String paramValue) {
38         this.paramValue = paramValue;
39     }
40     public String getParamName() {
41         return paramName;
42     }
43     public void setParamName(String paramName) {
44         this.paramName = paramName;
45     }
46     @Override
47     public String toString() {
48         return "Parameters [paramName=" + paramName + ", paramValue=" + paramValue + "]";
49     }
50     @Override
51     public int hashCode() {
52         final int prime = 31;
53         int result = 1;
54         result = prime * result + ((paramName == null) ? 0 : paramName.hashCode());
55         result = prime * result + ((paramValue == null) ? 0 : paramValue.hashCode());
56         return result;
57     }
58     @Override
59     public boolean equals(Object obj) {
60         if (this == obj)
61             return true;
62         if (obj == null)
63             return false;
64         if (getClass() != obj.getClass())
65             return false;
66         Parameters other = (Parameters) obj;
67         if (paramName == null) {
68             if (other.paramName != null)
69                 return false;
70         } else if (!paramName.equals(other.paramName))
71             return false;
72         if (paramValue == null) {
73             if (other.paramValue != null)
74                 return false;
75         } else if (!paramValue.equals(other.paramValue))
76             return false;
77         return true;
78     }
79
80 }