*/
package org.opendaylight.yangtools.concepts;
-public interface Codec<P,I> extends Serializer<P, I>, Deserializer<I, P> {
-
+/**
+ * The concept of a combined {@link Serializer} and {@link Deserializer}, which produces an object from some input.
+ * Implementations should consider subclassing {@link AbstractCodec}.
+ *
+ * @param <P> Product type
+ * @param <I> Input type
+ * @param <X> Error exception type
+ */
+@Deprecated(since = "7.0.9", forRemoval = true)
+public interface Codec<P, I, X extends Exception> extends Serializer<P, I, X>, Deserializer<I, P, X> {
@Override
- public I deserialize(P input);
-
+ I deserialize(P input) throws X;
+
@Override
- public P serialize(I input);
+ P serialize(I input) throws X;
}