X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=datarouter-prov%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdatarouter%2Fprovisioning%2Fbeans%2FSubDelivery.java;h=5a3457b903715b740d26661d7d557c55b6b6b05b;hb=534c164c124950a2019acf71d253ac96be12c78c;hp=fe60f89f41da55e1bd61a5c7e77f11aea77f4f1b;hpb=8cbe8a88bc6dfe8673a33a017fe6a5a3e7ce86c3;p=dmaap%2Fdatarouter.git diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java index fe60f89f..5a3457b9 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/SubDelivery.java @@ -26,6 +26,7 @@ package org.onap.dmaap.datarouter.provisioning.beans; import java.sql.ResultSet; import java.sql.SQLException; +import java.util.Objects; import org.json.JSONObject; @@ -42,10 +43,6 @@ public class SubDelivery implements JSONable { private String password; private boolean use100; - public SubDelivery() { - this("", "", "", false); - } - public SubDelivery(String url, String user, String password, boolean use100) { this.url = url; this.user = user; @@ -89,10 +86,6 @@ public class SubDelivery implements JSONable { return use100; } - public void setUse100(boolean use100) { - this.use100 = use100; - } - @Override public JSONObject asJSONObject() { JSONObject jo = new JSONObject(); @@ -118,4 +111,9 @@ public class SubDelivery implements JSONable { return false; return true; } + + @Override + public int hashCode() { + return Objects.hash(url, user, password, use100); + } }