X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflow-protocol-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fapi%2Fextensibility%2FMessageTypeKey.java;h=7885b7e17dadf5fcd16409f67314e4d0104b34fc;hb=79dba1331fc464a3fc6da4623d8ac1807152db4b;hp=65d3823dfaa924a2487e8c981332fa8eaf1a0c37;hpb=1af28ce842ef5a96ad1293c8db0a6cb494c1fbdc;p=openflowjava.git diff --git a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/MessageTypeKey.java b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/MessageTypeKey.java index 65d3823d..7885b7e1 100644 --- a/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/MessageTypeKey.java +++ b/openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/MessageTypeKey.java @@ -30,20 +30,6 @@ public class MessageTypeKey { this.msgVersion = msgVersion; } - /** - * @return msgVersion - */ - public short getMsgVersion() { - return msgVersion; - } - - /** - * @return the msgType - */ - public Class getMsgType() { - return msgType; - } - @Override public String toString() { return "msgVersion: " + msgVersion + " msgType: " + msgType.getName(); @@ -53,7 +39,7 @@ public class MessageTypeKey { public int hashCode() { final int prime = 31; int result = 1; - result = prime * result + msgVersion; + result = prime * result + ((msgType == null) ? 0 : msgType.getName().hashCode()); return result; } @@ -69,7 +55,7 @@ public class MessageTypeKey { if (msgType == null) { if (other.msgType != null) return false; - } else if (!other.msgType.isAssignableFrom(msgType)) + } else if (!other.msgType.getName().equals(msgType.getName())) return false; if (msgVersion != other.msgVersion) return false;