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