2 * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 package org.opendaylight.openflowjava.protocol.api.keys;
\r
11 import org.opendaylight.openflowjava.protocol.api.extensibility.MessageCodeKey;
\r
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.actions.grouping.Action;
\r
15 * @author michal.polkorab
\r
18 public class ActionDeserializerKey extends MessageCodeKey {
\r
20 private Long experimenterId;
\r
22 * @param version protocol wire version
\r
23 * @param type action type
\r
24 * @param experimenterId experimenter / vendor ID
\r
26 public ActionDeserializerKey(short version,
\r
27 int type, Long experimenterId) {
\r
28 super(version, type, Action.class);
\r
29 this.experimenterId = experimenterId;
\r
33 public int hashCode() {
\r
34 final int prime = 31;
\r
35 int result = super.hashCode();
\r
36 result = prime * result + ((experimenterId == null) ? 0 : experimenterId.hashCode());
\r
41 public boolean equals(Object obj) {
\r
45 if (!super.equals(obj)) {
\r
48 if (!(obj instanceof ActionDeserializerKey)) {
\r
51 ActionDeserializerKey other = (ActionDeserializerKey) obj;
\r
52 if (experimenterId == null) {
\r
53 if (other.experimenterId != null) {
\r
56 } else if (!experimenterId.equals(other.experimenterId)) {
\r
63 public String toString() {
\r
64 return super.toString() + " experimenterID: " + experimenterId;
\r