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;
12 public class RpcResponseKey {
14 private final long xid;
15 private final Class<? extends OfHeader> outputClazz;
20 public RpcResponseKey(long xid, Class<? extends OfHeader> outputClazz) {
23 this.outputClazz = outputClazz;
29 public long getXid() {
34 * @return the outputClazz
36 public Class<? extends OfHeader> getOutputClazz() {
41 public int hashCode() {
44 result = prime * result + (int) (xid ^ (xid >>> 32));
49 public boolean equals(Object obj) {
54 if (getClass() != obj.getClass())
56 RpcResponseKey other = (RpcResponseKey) obj;
57 if (outputClazz == null) {
58 if (other.outputClazz != null)
60 } else if (!other.outputClazz.isAssignableFrom(outputClazz))
68 public String toString() {
69 return "RpcResultKey [xid=" + xid + ", outputClazz=" + outputClazz