Class AbstractIllegalArgumentCodec<S,D>
java.lang.Object
org.opendaylight.yangtools.yang.data.api.codec.AbstractIllegalArgumentCodec<S,D>
- Type Parameters:
S
- Serializied (external) typeD
- Deserialized (internal) type
- All Implemented Interfaces:
IllegalArgumentCodec<S,
D>
- Direct Known Subclasses:
AbstractDataStringCodec
,AbstractStringIdentityrefCodec
,AbstractStringInstanceIdentifierCodec
,AbstractStringUnionCodec
@Beta
public abstract class AbstractIllegalArgumentCodec<S,D>
extends Object
implements IllegalArgumentCodec<S,D>
An abstract base class enforcing nullness contract around
IllegalArgumentCodec
interface.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal D
deserialize
(S input) Produce an internal object based on an external object.protected abstract @NonNull D
deserializeImpl
(@NonNull S product) final S
Produce an external object based on an internal object.protected abstract @NonNull S
serializeImpl
(@NonNull D input)
-
Constructor Details
-
AbstractIllegalArgumentCodec
public AbstractIllegalArgumentCodec()
-
-
Method Details
-
deserialize
Description copied from interface:IllegalArgumentCodec
Produce an internal object based on an external object.- Specified by:
deserialize
in interfaceIllegalArgumentCodec<S,
D> - Parameters:
input
- Input object- Returns:
- Product derived from input
-
serialize
Description copied from interface:IllegalArgumentCodec
Produce an external object based on an internal object.- Specified by:
serialize
in interfaceIllegalArgumentCodec<S,
D> - Parameters:
input
- Input- Returns:
- An external form object
-
deserializeImpl
-
serializeImpl
-