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.service.bean;
18 import lombok.AllArgsConstructor;
20 import lombok.NoArgsConstructor;
27 private String visualRange = "";
28 private String url = "";
29 private String path = "";
30 private String publish_port;
31 private String host = "";
32 private String protocol = "";
33 private String lb_policy = "";
34 private boolean enable_ssl = false;
39 public boolean equals(Object o) {
40 if (this == o) return true;
41 if (o == null || getClass() != o.getClass()) return false;
43 return Objects.equals(enable_ssl, spec.enable_ssl) &&
44 Objects.equals(visualRange, spec.visualRange) &&
45 Objects.equals(url, spec.url) &&
46 Objects.equals(path, spec.path) &&
47 Objects.equals(publish_port, spec.publish_port) &&
48 Objects.equals(host, spec.host) &&
49 Objects.equals(protocol, spec.protocol) &&
50 Objects.equals(lb_policy, spec.lb_policy) &&
51 Arrays.equals(nodes, spec.nodes);
55 public int hashCode() {
56 return Objects.hash(visualRange, url, path, publish_port, host, protocol, lb_policy, enable_ssl, nodes);