Class AbstractCodec<P,I,X extends Exception>
- java.lang.Object
-
- org.opendaylight.yangtools.concepts.AbstractCodec<P,I,X>
-
- Type Parameters:
P
- Product typeI
- Input typeX
- Error exception type
- All Implemented Interfaces:
Codec<P,I,X>
,Deserializer<I,P,X>
,Serializer<P,I,X>
- Direct Known Subclasses:
AbstractUncheckedCodec
@Beta @NonNullByDefault @Deprecated(since="7.0.9", forRemoval=true) public abstract class AbstractCodec<P,I,X extends Exception> extends Object implements Codec<P,I,X>
Deprecated, for removal: This API element is subject to removal in a future version.An abstract base class enforcing nullness contract aroundCodec
interface.
-
-
Constructor Summary
Constructors Constructor Description AbstractCodec()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NonNull I
deserialize(@NonNull P input)
Deprecated, for removal: This API element is subject to removal in a future version.Produce an object base on input.protected abstract @NonNull I
deserializeImpl(@NonNull P product)
Deprecated, for removal: This API element is subject to removal in a future version.@NonNull P
serialize(@NonNull I input)
Deprecated, for removal: This API element is subject to removal in a future version.Convert an input into a product.protected abstract @NonNull P
serializeImpl(@NonNull I input)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
deserialize
public final @NonNull I deserialize(@NonNull P input) throws X extends Exception
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Deserializer
Produce an object base on input.- Specified by:
deserialize
in interfaceCodec<P,I,X extends Exception>
- Specified by:
deserialize
in interfaceDeserializer<P,I,X extends Exception>
- Parameters:
input
- Input object- Returns:
- Product derived from input
- Throws:
X
- when input is not validX extends Exception
-
serialize
public final @NonNull P serialize(@NonNull I input) throws X extends Exception
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Serializer
Convert an input into a product.
-
deserializeImpl
protected abstract @NonNull I deserializeImpl(@NonNull P product) throws X extends Exception
Deprecated, for removal: This API element is subject to removal in a future version.
-
-