X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fmanager%2Fimpl%2Fjmx%2FServiceReference.java;h=9388b8e567d256eea035047da2d5552f0bc7b17f;hp=849f75234f05ccec20361066de8140ef37a5659e;hb=cbcc2b61265e903959f11d44c292771e76b3926e;hpb=9212fed678702583f4a555641208cf1c7b45b829 diff --git a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/jmx/ServiceReference.java b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/jmx/ServiceReference.java index 849f75234f..9388b8e567 100644 --- a/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/jmx/ServiceReference.java +++ b/opendaylight/config/config-manager/src/main/java/org/opendaylight/controller/config/manager/impl/jmx/ServiceReference.java @@ -8,14 +8,15 @@ package org.opendaylight.controller.config.manager.impl.jmx; public class ServiceReference { - private final String serviceInterfaceName, refName; + private final String serviceInterfaceName; + private final String refName; - public ServiceReference(String serviceInterfaceName, String refName) { + public ServiceReference(final String serviceInterfaceName, final String refName) { this.serviceInterfaceName = serviceInterfaceName; this.refName = refName; } - public String getServiceInterfaceName() { + public String getServiceInterfaceQName() { return serviceInterfaceName; } @@ -24,14 +25,22 @@ public class ServiceReference { } @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; + public boolean equals(final Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } ServiceReference that = (ServiceReference) o; - if (!refName.equals(that.refName)) return false; - if (!serviceInterfaceName.equals(that.serviceInterfaceName)) return false; + if (!refName.equals(that.refName)) { + return false; + } + if (!serviceInterfaceName.equals(that.serviceInterfaceName)) { + return false; + } return true; } @@ -42,4 +51,12 @@ public class ServiceReference { result = 31 * result + refName.hashCode(); return result; } + + @Override + public String toString() { + return "ServiceReference{" + + "serviceInterfaceName='" + serviceInterfaceName + '\'' + + ", refName='" + refName + '\'' + + '}'; + } }