Bug 5540 - ConvertorManager DataContainer source, one Convertor interface
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / common / ParametrizedConvertor.java
diff --git a/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/common/ParametrizedConvertor.java b/openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/common/ParametrizedConvertor.java
deleted file mode 100644 (file)
index 885d924..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common;
-
-/**
- * Converts OpenflowJava to MDSal model and vice versa
- *
- * @param <FROM> type of source
- * @param <TO>   type of result
- * @param <DATA>   type of convertor data
- */
-public interface ParametrizedConvertor<FROM, TO, DATA extends ConvertorData> {
-
-    /**
-     * Gets type of convertor, used in
-     * {@link org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.ConvertorManager}.
-     *
-     * @return the type of convertor
-     */
-    Class<?> getType();
-
-    /**
-     * Converts source to result
-     *
-     * @param source source
-     * @param data   convertor data
-     * @return converted source
-     */
-    TO convert(FROM source, DATA data);
-}