Bug 2756 - Action model update
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / keys / ActionDeserializerKey.java
index db17b3b5b647f057ca5ec8af2408dbc94d88cd96..208a122771aac664f2a342244b4b81886b2fe83e 100644 (file)
@@ -1,61 +1,65 @@
-/*\r
- * Copyright (c) 2014 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
-\r
-package org.opendaylight.openflowjava.protocol.api.keys;\r
-\r
-import org.opendaylight.openflowjava.protocol.api.extensibility.MessageCodeKey;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.Action;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public class ActionDeserializerKey extends MessageCodeKey {\r
-\r
-    private Long experimenterId;\r
-    /**\r
-     * @param version protocol wire version\r
-     * @param type action type\r
-     * @param experimenterId experimenter / vendor ID\r
-     */\r
-    public ActionDeserializerKey(short version,\r
-            int type, Long experimenterId) {\r
-        super(version, type, Action.class);\r
-        this.experimenterId = experimenterId;\r
-    }\r
-\r
-    @Override\r
-    public int hashCode() {\r
-        final int prime = 31;\r
-        int result = super.hashCode();\r
-        result = prime * result + ((experimenterId == null) ? 0 : experimenterId.hashCode());\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 (!(obj instanceof ActionDeserializerKey))\r
-            return false;\r
-        ActionDeserializerKey other = (ActionDeserializerKey) obj;\r
-        if (experimenterId == null) {\r
-            if (other.experimenterId != null)\r
-                return false;\r
-        } else if (!experimenterId.equals(other.experimenterId))\r
-            return false;\r
-        return true;\r
-    }\r
-\r
-    @Override\r
-    public String toString() {\r
-        return super.toString() + " experimenterID: " + experimenterId;\r
-    }\r
+/*
+ * Copyright (c) 2014 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.keys;
+
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.actions.grouping.Action;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public class ActionDeserializerKey extends MessageCodeKey {
+
+    private Long experimenterId;
+    /**
+     * @param version protocol wire version
+     * @param type action type
+     * @param experimenterId experimenter / vendor ID
+     */
+    public ActionDeserializerKey(short version,
+            int type, Long experimenterId) {
+        super(version, type, Action.class);
+        this.experimenterId = experimenterId;
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = super.hashCode();
+        result = prime * result + ((experimenterId == null) ? 0 : experimenterId.hashCode());
+        return result;
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (!super.equals(obj)) {
+            return false;
+        }
+        if (!(obj instanceof ActionDeserializerKey)) {
+            return false;
+        }
+        ActionDeserializerKey other = (ActionDeserializerKey) obj;
+        if (experimenterId == null) {
+            if (other.experimenterId != null) {
+                return false;
+            }
+        } else if (!experimenterId.equals(other.experimenterId)) {
+            return false;
+        }
+        return true;
+    }
+
+    @Override
+    public String toString() {
+        return super.toString() + " experimenterID: " + experimenterId;
+    }
 }
\ No newline at end of file