f80ccfffd84f6369e003bb0e6b177ddda9a15531
[controller.git] / opendaylight / commons / concepts / src / main / java / org / opendaylight / controller / concepts / transform / Transformer.java
1 /*\r
2  * Copyright (c) 2013 Cisco Systems, Inc. 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.controller.concepts.transform;\r
10 \r
11 /**\r
12  * Factory which produces product based on input object\r
13  * \r
14  * @author Tony Tkacik\r
15  *\r
16  * @param <I> Input\r
17  * @param <P> Product\r
18  */\r
19 public interface Transformer<I,P> {\r
20     /**\r
21      * Transforms input into instance of product.\r
22      * \r
23      * @param input Input which drives transformation\r
24      * @return Instance of product which was created from supplied input.\r
25      */\r
26     P transform(I input);\r
27 }\r