Class AbstractIllegalArgumentCodec<S,D>

java.lang.Object
org.opendaylight.yangtools.yang.data.api.codec.AbstractIllegalArgumentCodec<S,D>
Type Parameters:
S - Serializied (external) type
D - 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 Details

    • AbstractIllegalArgumentCodec

      public AbstractIllegalArgumentCodec()
  • Method Details

    • deserialize

      public final D deserialize(S input)
      Description copied from interface: IllegalArgumentCodec
      Produce an internal object based on an external object.
      Specified by:
      deserialize in interface IllegalArgumentCodec<S,D>
      Parameters:
      input - Input object
      Returns:
      Product derived from input
    • serialize

      public final S serialize(D input)
      Description copied from interface: IllegalArgumentCodec
      Produce an external object based on an internal object.
      Specified by:
      serialize in interface IllegalArgumentCodec<S,D>
      Parameters:
      input - Input
      Returns:
      An external form object
    • deserializeImpl

      protected abstract @NonNull D deserializeImpl(@NonNull S product)
    • serializeImpl

      protected abstract @NonNull S serializeImpl(@NonNull D input)