-/*\r
- * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-package org.opendaylight.openflowjava.protocol.api.extensibility;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public class EnhancedMessageCodeKey extends MessageCodeKey {\r
-\r
- private int msgType2;\r
-\r
- /**\r
- * Constructor\r
- * @param version wire protocol version\r
- * @param value used as distinguisher\r
- * @param value2 used as detailed distinguisher\r
- * @param clazz class of object that is going to be deserialized\r
- */\r
- public EnhancedMessageCodeKey(short version, int value, int value2, Class<?> clazz) {\r
- super(version, value, clazz);\r
- this.msgType2 = value2;\r
- }\r
-\r
- @Override\r
- public int hashCode() {\r
- final int prime = 31;\r
- int result = super.hashCode();\r
- result = prime * result + msgType2;\r
- return result;\r
- }\r
-\r
- @Override\r
- public boolean equals(Object obj) {\r
- if (this == obj) {\r
- return true;\r
- }\r
- if (!super.equals(obj)) {\r
- return false;\r
- }\r
- if (getClass() != obj.getClass()) {\r
- return false;\r
- }\r
- EnhancedMessageCodeKey other = (EnhancedMessageCodeKey) obj;\r
- if (msgType2 != other.msgType2) {\r
- return false;\r
- }\r
- return true;\r
- }\r
-\r
- @Override\r
- public String toString() {\r
- return super.toString() + " msgType2: " + msgType2;\r
- }\r
+/*
+ * 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.api.extensibility;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public class EnhancedMessageCodeKey extends MessageCodeKey {
+
+ private int msgType2;
+
+ /**
+ * Constructor
+ * @param version wire protocol version
+ * @param value used as distinguisher
+ * @param value2 used as detailed distinguisher
+ * @param clazz class of object that is going to be deserialized
+ */
+ public EnhancedMessageCodeKey(short version, int value, int value2, Class<?> clazz) {
+ super(version, value, clazz);
+ this.msgType2 = value2;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = super.hashCode();
+ result = prime * result + msgType2;
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj) {
+ return true;
+ }
+ if (!super.equals(obj)) {
+ return false;
+ }
+ if (getClass() != obj.getClass()) {
+ return false;
+ }
+ EnhancedMessageCodeKey other = (EnhancedMessageCodeKey) obj;
+ if (msgType2 != other.msgType2) {
+ return false;
+ }
+ return true;
+ }
+
+ @Override
+ public String toString() {
+ return super.toString() + " msgType2: " + msgType2;
+ }
}
\ No newline at end of file