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.api.keys;
11 * Key for a class type.
13 * @author michal.polkorab
15 public class TypeToClassKey {
17 private final short version;
18 private final int type;
23 * @param version wire protocol version
24 * @param type message type / code
26 public TypeToClassKey(short version, int type) {
27 this.version = version;
32 public int hashCode() {
35 result = prime * result + type;
40 public boolean equals(Object obj) {
47 if (getClass() != obj.getClass()) {
50 TypeToClassKey other = (TypeToClassKey) obj;
51 if (type != other.type) {
54 if (version != other.version) {