+++ /dev/null
-/*
- * 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,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.controller.config.manager.impl.jmx;
-
-public class ServiceReference {
- private final String serviceInterfaceName;
- private final String refName;
-
- public ServiceReference(final String serviceInterfaceName, final String refName) {
- this.serviceInterfaceName = serviceInterfaceName;
- this.refName = refName;
- }
-
- public String getServiceInterfaceQName() {
- return serviceInterfaceName;
- }
-
- public String getRefName() {
- return refName;
- }
-
- @Override
- public boolean equals(final Object object) {
- if (this == object) {
- return true;
- }
- if (object == null || getClass() != object.getClass()) {
- return false;
- }
-
- ServiceReference that = (ServiceReference) object;
-
- if (!refName.equals(that.refName)) {
- return false;
- }
- if (!serviceInterfaceName.equals(that.serviceInterfaceName)) {
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode() {
- int result = serviceInterfaceName.hashCode();
- result = 31 * result + refName.hashCode();
- return result;
- }
-
- @Override
- public String toString() {
- return "ServiceReference{" + "serviceInterfaceName='" + serviceInterfaceName + '\'' + ", refName='" + refName
- + '\'' + '}';
- }
-}