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=88646b4cc1b759b95cede46d7db99103103bc57a;hp=cd74ddf7565a32fd74e650cde1d50e720966d506;hb=f43b01b81319959b1907e3e04537f5169e7f33d8;hpb=f98c06febcb1758cd11fce5117838e535bb52b57;ds=sidebyside 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 cd74ddf756..88646b4cc1 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 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2013, 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -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,15 +25,15 @@ public class ServiceReference { } @Override - public boolean equals(Object o) { - if (this == o) { + public boolean equals(final Object object) { + if (this == object) { return true; } - if (o == null || getClass() != o.getClass()) { + if (object == null || getClass() != object.getClass()) { return false; } - ServiceReference that = (ServiceReference) o; + ServiceReference that = (ServiceReference) object; if (!refName.equals(that.refName)) { return false; @@ -50,4 +51,10 @@ public class ServiceReference { result = 31 * result + refName.hashCode(); return result; } + + @Override + public String toString() { + return "ServiceReference{" + "serviceInterfaceName='" + serviceInterfaceName + '\'' + ", refName='" + refName + + '\'' + '}'; + } }