+++ /dev/null
-/*\r
- * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.controller.concepts.tranform;\r
-\r
-/**\r
- * Simple condition-based transformer\r
- * \r
- * The transformer provides {@link #isAcceptable(Object)} method,\r
- * which could be used to query transformer if the input will produce\r
- * result.\r
- * \r
- * This interface is simplified version of {@link RuleBasedTransformer} - does not\r
- * provide decoupling of Acceptance rule from transformer, and should be used only\r
- * for simple use-cases.\r
- * \r
- * @author Tony Tkacik\r
- *\r
- * @param <I> Input class for transformation\r
- * @param <P> Product of transformation\r
- */\r
-public interface SimpleConditionalTransformer<I,P> extends Transformer<I, P>, Acceptor<I> {\r
-\r
-\r
- /**\r
- * Checks if the input is acceptable \r
- * for processing by the transformer.\r
- * \r
- * @return true it the input is acceptable for processing by transformer.\r
- */\r
- @Override\r
- public boolean isAcceptable(I input);\r
-}\r