-/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
package org.opendaylight.openflowjava.protocol.impl.connection;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
/**
public class RpcResponseKey {
private final long xid;
- private final Class<? extends OfHeader> outputClazz;
+ private final String outputClazz;
/**
* @param xid
* @param outputClazz
*/
- public RpcResponseKey(long xid, Class<? extends OfHeader> outputClazz) {
- super();
+ public RpcResponseKey(long xid, String outputClazz) {
this.xid = xid;
this.outputClazz = outputClazz;
}
/**
* @return the outputClazz
*/
- public Class<? extends OfHeader> getOutputClazz() {
+ public String getOutputClazz() {
return outputClazz;
}
public int hashCode() {
final int prime = 31;
int result = 1;
- result = prime * result + (int) (xid ^ (xid >>> 32));
+ result = prime * result
+ + ((outputClazz == null) ? 0 : outputClazz.hashCode());
return result;
}
if (outputClazz == null) {
if (other.outputClazz != null)
return false;
- } else if (!other.outputClazz.isAssignableFrom(outputClazz))
- return false;
- if (xid != other.xid)
+ } else if (!outputClazz.equals(other.outputClazz))
return false;
+// if (xid != other.xid)
+// return false;
return true;
}