2 * Copyright (c) 2013 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
8 package org.opendaylight.openflowjava.protocol.impl.util;
11 * @author michal.polkorab
14 public class TypeToClassKey {
16 private short version;
21 * @param version wire protocol version
22 * @param type message type / code
24 public TypeToClassKey(short version, int type) {
25 this.version = version;
30 public int hashCode() {
33 result = prime * result + type;
38 public boolean equals(Object obj) {
45 if (getClass() != obj.getClass()) {
48 TypeToClassKey other = (TypeToClassKey) obj;
49 if (type != other.type) {
52 if (version != other.version) {