Interface IllegalArgumentCodec<P,I>
-
- Type Parameters:
P
- Product typeI
- Input type
- All Superinterfaces:
Codec<P,I,IllegalArgumentException>
,Deserializer<I,P,IllegalArgumentException>
,Serializer<P,I,IllegalArgumentException>
,UncheckedCodec<P,I,IllegalArgumentException>
,UncheckedDeserializer<P,I,IllegalArgumentException>
,UncheckedSerializer<I,P,IllegalArgumentException>
- 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 public interface IllegalArgumentCodec<P,I> extends UncheckedCodec<P,I,IllegalArgumentException>
Utility interface, which specializesUncheckedCodec
toIllegalArgumentException
. This is useful for migration purposes. Implementations should consider subclassingAbstractIllegalArgumentCodec
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description I
deserialize(P input)
Produce an object base on input.P
serialize(I input)
Convert an input into a product.
-
-
-
Method Detail
-
serialize
P serialize(I input)
Description copied from interface:Serializer
Convert an input into a product.- Specified by:
serialize
in interfaceCodec<P,I,IllegalArgumentException>
- Specified by:
serialize
in interfaceSerializer<P,I,IllegalArgumentException>
- Specified by:
serialize
in interfaceUncheckedDeserializer<P,I,IllegalArgumentException>
- Parameters:
input
- Input- Returns:
- A product
-
deserialize
I deserialize(P input)
Description copied from interface:Deserializer
Produce an object base on input.- Specified by:
deserialize
in interfaceCodec<P,I,IllegalArgumentException>
- Specified by:
deserialize
in interfaceDeserializer<I,P,IllegalArgumentException>
- Specified by:
deserialize
in interfaceUncheckedSerializer<I,P,IllegalArgumentException>
- Parameters:
input
- Input object- Returns:
- Product derived from input
-
-