Copyright update
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / deserialization / MessageTypeCodeKey.java
index dd71c4a2e5c9d4115be4d5d27b2e3e4ad0f600ee..96fb3e70100f7459f5dde5e6cf2cad615b257d6a 100644 (file)
@@ -1,63 +1,70 @@
-/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */\r
-package org.opendaylight.openflowjava.protocol.impl.deserialization;\r
-\r
-\r
-/**\r
- * Class used as a key in {@link DecoderTable}\r
- * @author michal.polkorab\r
- * @author timotej.kubas\r
- */\r
-public class MessageTypeCodeKey {\r
-\r
-    private final short msgType;\r
-    private final short msgVersion;\r
-\r
-    /**\r
-     * @param msgVersion protocol version\r
-     * @param msgType type code of message\r
-     */\r
-    public MessageTypeCodeKey(short msgVersion, short msgType) {\r
-        this.msgType = msgType;\r
-        this.msgVersion = msgVersion;\r
-    }\r
-\r
-    /**\r
-     * @return the msgType\r
-     */\r
-    public short getMsgType() {\r
-        return msgType;\r
-    }\r
-\r
-    /**\r
-     * @return the msgVersion\r
-     */\r
-    public short getMsgVersion() {\r
-        return msgVersion;\r
-    }\r
-\r
-    @Override\r
-    public int hashCode() {\r
-        final int prime = 31;\r
-        int result = 1;\r
-        result = prime * result + msgType;\r
-        result = prime * result + msgVersion;\r
-        return result;\r
-    }\r
-\r
-    @Override\r
-    public boolean equals(Object obj) {\r
-        if (this == obj)\r
-            return true;\r
-        if (obj == null)\r
-            return false;\r
-        if (getClass() != obj.getClass())\r
-            return false;\r
-        MessageTypeCodeKey other = (MessageTypeCodeKey) obj;\r
-        if (msgType != other.msgType)\r
-            return false;\r
-        if (msgVersion != other.msgVersion)\r
-            return false;\r
-        return true;\r
-    }\r
-    \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.impl.deserialization;
+
+
+/**
+ * Class used as a key in {@link DecoderTable}
+ * @author michal.polkorab
+ * @author timotej.kubas
+ */
+public class MessageTypeCodeKey {
+
+    private final short msgType;
+    private final short msgVersion;
+
+    /**
+     * @param msgVersion protocol version
+     * @param msgType type code of message
+     */
+    public MessageTypeCodeKey(short msgVersion, short msgType) {
+        this.msgType = msgType;
+        this.msgVersion = msgVersion;
+    }
+
+    /**
+     * @return the msgType
+     */
+    public short getMsgType() {
+        return msgType;
+    }
+
+    /**
+     * @return the msgVersion
+     */
+    public short getMsgVersion() {
+        return msgVersion;
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + msgType;
+        result = prime * result + msgVersion;
+        return result;
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        if (this == obj)
+            return true;
+        if (obj == null)
+            return false;
+        if (getClass() != obj.getClass())
+            return false;
+        MessageTypeCodeKey other = (MessageTypeCodeKey) obj;
+        if (msgType != other.msgType)
+            return false;
+        if (msgVersion != other.msgVersion)
+            return false;
+        return true;
+    }
+    
+}