Merge "BUG-592: Fix InstanceIdentifier instantiation"
[controller.git] / opendaylight / sal / yang-prototype / concepts-lang / src / main / java / org / opendaylight / controller / concepts / lang / 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.lang;
10 /**
11  * Factory which produces product based on input object
12  *
13  * @author Tony Tkacik
14  *
15  * @param <I> Input
16  * @param <P> Product
17  */
18 public interface Transformer<I,P> {
19     /**
20      * Transforms input into instance of product.
21      *
22      * @param input Input which drives transformation
23      * @return Instance of product which was created from supplied input.
24      */
25     P transform(I input);
26 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.