1 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
3 package org.opendaylight.openflowjava.protocol.impl.connection;
5 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
11 public class RpcResponseKey {
13 private final long xid;
14 private final Class<? extends OfHeader> outputClazz;
19 public RpcResponseKey(long xid, Class<? extends OfHeader> outputClazz) {
22 this.outputClazz = outputClazz;
28 public long getXid() {
33 * @return the outputClazz
35 public Class<? extends OfHeader> getOutputClazz() {
40 public int hashCode() {
43 result = prime * result + (int) (xid ^ (xid >>> 32));
48 public boolean equals(Object obj) {
53 if (getClass() != obj.getClass())
55 RpcResponseKey other = (RpcResponseKey) obj;
56 if (outputClazz == null) {
57 if (other.outputClazz != null)
59 } else if (!other.outputClazz.isAssignableFrom(outputClazz))
67 public String toString() {
68 return "RpcResultKey [xid=" + xid + ", outputClazz=" + outputClazz