Bug 1324 - Buffer released correctly (even if translated dataObject is null)
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / util / AbstractTypeKeyMaker.java
1 /*\r
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.\r
3  *\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
7  */\r
8 \r
9 package org.opendaylight.openflowjava.protocol.impl.util;\r
10 \r
11 \r
12 /**\r
13  * @author michal.polkorab\r
14  * @param <T> type the key maker is based on \r
15  */\r
16 public abstract class AbstractTypeKeyMaker<T> implements TypeKeyMaker<T> {\r
17 \r
18     private short version;\r
19 \r
20     /**\r
21      * @param version openflow wire version\r
22      */\r
23     public AbstractTypeKeyMaker(short version) {\r
24         this.version = version;\r
25         \r
26     }\r
27 \r
28     /**\r
29      * @return the version\r
30      */\r
31     public short getVersion() {\r
32         return version;\r
33     }\r
34 \r
35 }\r