2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.config.manager.impl.jmx;
10 public class ServiceReference {
11 private final String serviceInterfaceName, refName;
13 public ServiceReference(String serviceInterfaceName, String refName) {
14 this.serviceInterfaceName = serviceInterfaceName;
15 this.refName = refName;
18 public String getServiceInterfaceName() {
19 return serviceInterfaceName;
22 public String getRefName() {
27 public boolean equals(Object o) {
31 if (o == null || getClass() != o.getClass()) {
35 ServiceReference that = (ServiceReference) o;
37 if (!refName.equals(that.refName)) {
40 if (!serviceInterfaceName.equals(that.serviceInterfaceName)) {
48 public int hashCode() {
49 int result = serviceInterfaceName.hashCode();
50 result = 31 * result + refName.hashCode();