2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\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
9 package org.opendaylight.controller.concepts.transform;
\r
12 * Factory which produces product based on input object
\r
14 * @author Tony Tkacik
\r
17 * @param <P> Product
\r
19 public interface Transformer<I,P> {
\r
21 * Transforms input into instance of product.
\r
23 * @param input Input which drives transformation
\r
24 * @return Instance of product which was created from supplied input.
\r
26 P transform(I input);
\r