1 /* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
3 package org.opendaylight.openflowjava.protocol.impl.connection;
10 public class RpcResponseKey {
12 private final long xid;
13 private final String outputClazz;
18 public RpcResponseKey(long xid, String outputClazz) {
21 this.outputClazz = outputClazz;
27 public long getXid() {
32 * @return the outputClazz
34 public String getOutputClazz() {
39 public int hashCode() {
42 result = prime * result
43 + ((outputClazz == null) ? 0 : outputClazz.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 (!outputClazz.equals(other.outputClazz))
68 public String toString() {
69 return "RpcResultKey [xid=" + xid + ", outputClazz=" + outputClazz