-/*\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.experimenter;\r
-\r
-import org.opendaylight.openflowjava.protocol.api.keys.ActionSerializerKey;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.Experimenter;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.ExperimenterActionSubType;\r
-\r
-/**\r
- * @author michal.polkorab\r
- */\r
-public final class ExperimenterActionSerializerKey extends ActionSerializerKey<Experimenter> \r
- implements ExperimenterSerializerKey {\r
-\r
- private Class<? extends ExperimenterActionSubType> actionSubType;\r
-\r
- /**\r
- * @param msgVersion protocol wire version\r
- * @param experimenterId experimenter / vendor ID\r
- * @param actionSubType vendor defined subtype\r
- */\r
- public ExperimenterActionSerializerKey(short msgVersion, Long experimenterId, Class<? extends ExperimenterActionSubType> actionSubType) {\r
- super(msgVersion, Experimenter.class, experimenterId);\r
- this.actionSubType = actionSubType;\r
- }\r
-\r
- @Override\r
- public int hashCode() {\r
- final int prime = 31;\r
- int result = super.hashCode();\r
- result = prime * result + ((actionSubType == null) ? 0 : actionSubType.hashCode());\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
- ExperimenterActionSerializerKey other = (ExperimenterActionSerializerKey) obj;\r
- if (actionSubType == null) {\r
- if (other.actionSubType != null) {\r
- return false;\r
- }\r
- } else if (!actionSubType.equals(other.actionSubType)) {\r
- return false;\r
- }\r
- return true;\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.experimenter;
+
+import org.opendaylight.openflowjava.protocol.api.keys.ActionSerializerKey;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.Experimenter;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.ExperimenterActionSubType;
+
+/**
+ * @author michal.polkorab
+ */
+public final class ExperimenterActionSerializerKey extends ActionSerializerKey<Experimenter>
+ implements ExperimenterSerializerKey {
+
+ private Class<? extends ExperimenterActionSubType> actionSubType;
+
+ /**
+ * @param msgVersion protocol wire version
+ * @param experimenterId experimenter / vendor ID
+ * @param actionSubType vendor defined subtype
+ */
+ public ExperimenterActionSerializerKey(short msgVersion, Long experimenterId, Class<? extends ExperimenterActionSubType> actionSubType) {
+ super(msgVersion, Experimenter.class, experimenterId);
+ this.actionSubType = actionSubType;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int result = super.hashCode();
+ result = prime * result + ((actionSubType == null) ? 0 : actionSubType.hashCode());
+ 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;
+ }
+ ExperimenterActionSerializerKey other = (ExperimenterActionSerializerKey) obj;
+ if (actionSubType == null) {
+ if (other.actionSubType != null) {
+ return false;
+ }
+ } else if (!actionSubType.equals(other.actionSubType)) {
+ return false;
+ }
+ return true;
+ }