Bug 2245 Fixed Avoid cycle between java packages
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / extensibility / EnhancedMessageCodeKey.java
index 8db03d938f730b949f184b99323a4ea653371e2c..b8a7ec0df00a729d7bbedebb1c6b225771c7afd7 100644 (file)
@@ -1,56 +1,62 @@
-/*\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
-        if (!super.equals(obj))\r
-            return false;\r
-        if (getClass() != obj.getClass())\r
-            return false;\r
-        EnhancedMessageCodeKey other = (EnhancedMessageCodeKey) obj;\r
-        if (msgType2 != other.msgType2)\r
-            return false;\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;
+
+import org.opendaylight.openflowjava.protocol.api.keys.MessageCodeKey;
+
+/**
+ * @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