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