0f70cefd38a7efa1b9109d3fcfd18c970ae24635
[openflowplugin.git] / extension / openflowplugin-extension-api / src / main / java / org / opendaylight / openflowplugin / extension / api / ConverterExtensionKey.java
1 /**
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  * 
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
7  */
8 package org.opendaylight.openflowplugin.extension.api;
9
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.general.rev140714.ExtensionKey;
11
12 /**
13  * lookup and register key for extension converters, basic case expects this to
14  * correlate with input model type
15  * 
16  * @param <TYPE> type of key
17  */
18 public class ConverterExtensionKey<TYPE extends ExtensionKey> extends TypeVersionKey<TYPE> {
19
20     private Class<TYPE> type;
21     private short ofVersion;
22
23     /**
24      * @param type
25      */
26     public ConverterExtensionKey(Class<TYPE> type, short ofVersion) {
27         super(type, ofVersion);
28     }
29 }