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.yangtools.yang.binding.DataContainer;
14 * @author michal.polkorab
16 public class ExperimenterIdTypeDeserializerKey extends ExperimenterIdDeserializerKey {
21 * @param msgVersion protocol wire version
22 * @param experimenterId experimenter / vendor ID
23 * @param type data type according to vendor implementation
24 * @param objectClass class of object to be serialized
26 public <T extends DataContainer> ExperimenterIdTypeDeserializerKey(short msgVersion,
27 long experimenterId, long type, Class<T> objectClass) {
28 super(msgVersion, experimenterId, objectClass);
33 public int hashCode() {
35 int result = super.hashCode();
36 result = prime * result + hashCodeOfLong(type);
41 public boolean equals(Object obj) {
42 if (!super.equals(obj)) {
45 if (!(obj instanceof ExperimenterIdTypeDeserializerKey)) {
48 ExperimenterIdTypeDeserializerKey other = (ExperimenterIdTypeDeserializerKey) obj;
49 if (type != other.type) {
56 public String toString() {
57 return super.toString() + "; type: " + type;