1 /*******************************************************************************
2 * Copyright 2016-2017 ZTE, Inc. and others.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 ******************************************************************************/
16 package org.onap.msb.apiroute.wrapper.dao.route.bean;
18 import lombok.AllArgsConstructor;
20 import lombok.NoArgsConstructor;
27 private String visualRange = "";
28 private String url = "";
29 private String publish_port;
30 private String host = "";
31 private String apijson = "";
32 private String apijsontype = "";
33 private String metricsUrl = "";
34 private String consulServiceName = "";
35 private String useOwnUpstream = "";
36 private String publish_protocol = "";
37 private boolean enable_ssl = false;
38 private String control = "";
43 public boolean equals(Object o) {
44 if (this == o) return true;
45 if (o == null || getClass() != o.getClass()) return false;
47 return Objects.equals(enable_ssl, spec.enable_ssl) &&
48 Objects.equals(visualRange, spec.visualRange) &&
49 Objects.equals(url, spec.url) &&
50 Objects.equals(publish_port, spec.publish_port) &&
51 Objects.equals(host, spec.host) &&
52 Objects.equals(apijson, spec.apijson) &&
53 Objects.equals(apijsontype, spec.apijsontype) &&
54 Objects.equals(metricsUrl, spec.metricsUrl) &&
55 Objects.equals(consulServiceName, spec.consulServiceName) &&
56 Objects.equals(useOwnUpstream, spec.useOwnUpstream) &&
57 Objects.equals(publish_protocol, spec.publish_protocol) &&
58 Objects.equals(control, spec.control) &&
59 Arrays.equals(nodes, spec.nodes);
63 public int hashCode() {
64 return Objects.hash(visualRange, url, publish_port, host, apijson, apijsontype, metricsUrl, consulServiceName, useOwnUpstream, publish_protocol, enable_ssl, control, nodes);