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) {
28 if (this == o) return true;
29 if (o == null || getClass() != o.getClass()) return false;
31 ServiceReference that = (ServiceReference) o;
33 if (!refName.equals(that.refName)) return false;
34 if (!serviceInterfaceName.equals(that.serviceInterfaceName)) return false;
40 public int hashCode() {
41 int result = serviceInterfaceName.hashCode();
42 result = 31 * result + refName.hashCode();