1 package org.onap.msb.apiroute.wrapper.dao.route.bean;
3 import lombok.AllArgsConstructor;
5 import lombok.NoArgsConstructor;
12 private String visualRange = "";
13 private String url = "";
14 private String publish_port;
15 private String host = "";
16 private String apijson = "";
17 private String apijsontype = "";
18 private String metricsUrl = "";
19 private String consulServiceName = "";
20 private String useOwnUpstream = "";
21 private String publish_protocol = "";
22 private boolean enable_ssl = false;
23 private String control = "";
28 public boolean equals(Object o) {
29 if (this == o) return true;
30 if (o == null || getClass() != o.getClass()) return false;
32 return Objects.equals(enable_ssl, spec.enable_ssl) &&
33 Objects.equals(visualRange, spec.visualRange) &&
34 Objects.equals(url, spec.url) &&
35 Objects.equals(publish_port, spec.publish_port) &&
36 Objects.equals(host, spec.host) &&
37 Objects.equals(apijson, spec.apijson) &&
38 Objects.equals(apijsontype, spec.apijsontype) &&
39 Objects.equals(metricsUrl, spec.metricsUrl) &&
40 Objects.equals(consulServiceName, spec.consulServiceName) &&
41 Objects.equals(useOwnUpstream, spec.useOwnUpstream) &&
42 Objects.equals(publish_protocol, spec.publish_protocol) &&
43 Objects.equals(control, spec.control) &&
44 Arrays.equals(nodes, spec.nodes);
48 public int hashCode() {
49 return Objects.hash(visualRange, url, publish_port, host, apijson, apijsontype, metricsUrl, consulServiceName, useOwnUpstream, publish_protocol, enable_ssl, control, nodes);