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
9 package org.opendaylight.openflowjava.protocol.impl.connection;
16 public class RpcResponseKey {
18 private final long xid;
19 private final String outputClazz;
24 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());
50 result = prime * result + (int) (xid ^ (xid >>> 32));
55 public boolean equals(Object obj) {
60 if (getClass() != obj.getClass())
62 RpcResponseKey other = (RpcResponseKey) obj;
63 if (outputClazz == null) {
64 if (other.outputClazz != null)
66 } else if (!outputClazz.equals(other.outputClazz))
74 public String toString() {
75 return "RpcResultKey [xid=" + xid + ", outputClazz=" + outputClazz