2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 * ============LICENSE_END=========================================================
21 package org.onap.appc.flow.controller.data;
23 import com.fasterxml.jackson.annotation.JsonProperty;
25 public class Parameters {
29 private String paramName ;
31 @JsonProperty("value")
32 private String paramValue ;
34 public String getParamValue() {
37 public void setParamValue(String paramValue) {
38 this.paramValue = paramValue;
40 public String getParamName() {
43 public void setParamName(String paramName) {
44 this.paramName = paramName;
47 public String toString() {
48 return "Parameters [paramName=" + paramName + ", paramValue=" + paramValue + "]";
51 public int hashCode() {
54 result = prime * result + ((paramName == null) ? 0 : paramName.hashCode());
55 result = prime * result + ((paramValue == null) ? 0 : paramValue.hashCode());
59 public boolean equals(Object obj) {
64 if (getClass() != obj.getClass())
66 Parameters other = (Parameters) obj;
67 if (paramName == null) {
68 if (other.paramName != null)
70 } else if (!paramName.equals(other.paramName))
72 if (paramValue == null) {
73 if (other.paramValue != null)
75 } else if (!paramValue.equals(other.paramValue))