2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.concepts.lang;
11 * Input class based transformer
13 * {@link Transformer} which accepts / transforms only specific classes of
14 * input, and is useful if the selection of transformer should be based on the
15 * class of the input and there is one-to-one mapping between input class and
22 * Common supertype of input
24 * Concrete type of input
28 public interface InputClassBasedTransformer<S, I extends S, P> extends
32 * Returns an {@link Class} of input which is acceptable for transformation.
34 * @return {@link Class} of input which is acceptable for transformation.
36 Class<? extends S> getInputClass();