Interface IllegalArgumentCodec<S,D>
-
- Type Parameters:
S
- Serialized (external) typeD
- Deserialized (internal) type
- All Known Subinterfaces:
BinaryCodec<T>
,BitsCodec<T>
,BooleanCodec<T>
,DataStringCodec<T>
,DecimalCodec<T>
,EmptyCodec<T>
,EnumCodec<T>
,IdentityrefCodec<T>
,InstanceIdentifierCodec<T>
,Int16Codec<T>
,Int32Codec<T>
,Int64Codec<T>
,Int8Codec<T>
,LeafrefCodec<T>
,StringCodec<T>
,Uint16Codec<T>
,Uint32Codec<T>
,Uint64Codec<T>
,Uint8Codec<T>
,UnionCodec<T>
- All Known Implementing Classes:
AbstractDataStringCodec
,AbstractIllegalArgumentCodec
,AbstractIntegerStringCodec
,AbstractModuleStringIdentityrefCodec
,AbstractModuleStringInstanceIdentifierCodec
,AbstractStringIdentityrefCodec
,AbstractStringInstanceIdentifierCodec
,AbstractStringUnionCodec
,BinaryStringCodec
,BitsStringCodec
,BooleanStringCodec
,DecimalStringCodec
,EnumStringCodec
,ModuleStringIdentityrefCodec
,StringStringCodec
,TypeDefinitionAwareCodec
@Beta @Deprecated(since="8.0.0", forRemoval=true) public interface IllegalArgumentCodec<S,D>
Deprecated, for removal: This API element is subject to removal in a future version.This interface ignores a number of complications when dealing with external forms. For one, it assumes a serdes operation does not have further context than the input -- and this is seldom the case. The other failing is that it actively discourages use of checked exceptions to deal with errors at the appropriate level. Based on these, this interface is deprecated for removal without a replacement. Users are encouraged to define similar interface fitting their needs.Utility interface for translation between a external form and an internal form. Implementations should consider subclassingAbstractIllegalArgumentCodec
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NonNull D
deserialize(@NonNull S input)
Deprecated, for removal: This API element is subject to removal in a future version.Produce an internal object based on an external object.@NonNull S
serialize(@NonNull D input)
Deprecated, for removal: This API element is subject to removal in a future version.Produce an external object based on an internal object.
-
-
-
Method Detail
-
deserialize
@NonNull D deserialize(@NonNull S input)
Deprecated, for removal: This API element is subject to removal in a future version.Produce an internal object based on an external object.- Parameters:
input
- Input object- Returns:
- Product derived from input
- Throws:
NullPointerException
- if input is nullIllegalArgumentException
- when input is not valid
-
serialize
@NonNull S serialize(@NonNull D input)
Deprecated, for removal: This API element is subject to removal in a future version.Produce an external object based on an internal object.- Parameters:
input
- Input- Returns:
- An external form object
- Throws:
NullPointerException
- if input is nullIllegalArgumentException
- when input is not valid
-
-