2 * Copyright (c) 2013 Pantheon Technologies s.r.o. 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
10 package org.opendaylight.openflowjava.protocol.impl.core.connection;
17 public class RpcResponseKey {
19 private final long xid;
20 private final String outputClazz;
25 public RpcResponseKey(long xid, String outputClazz) {
27 this.outputClazz = outputClazz;
33 public long getXid() {
38 * @return the outputClazz
40 public String getOutputClazz() {
45 public int hashCode() {
48 result = prime * result
49 + ((outputClazz == null) ? 0 : outputClazz.hashCode());
54 public boolean equals(Object obj) {
61 if (getClass() != obj.getClass()) {
64 RpcResponseKey other = (RpcResponseKey) obj;
65 if (outputClazz == null) {
66 if (other.outputClazz != null) {
69 } else if (!outputClazz.equals(other.outputClazz)) {
71 // if (xid != other.xid)
78 public String toString() {
79 return "RpcResultKey [xid=" + xid + ", outputClazz=" + outputClazz