Module io.inverno.mod.base
Package io.inverno.mod.base.converter
Interface SplittableDecoder<From,To>
- Type Parameters:
From- the encoded typeTo- the decoded type
- All Superinterfaces:
Decoder<From,To>
- All Known Subinterfaces:
ObjectConverter<From>,SplittablePrimitiveDecoder<From>
- All Known Implementing Classes:
ByteBufConverter,JacksonByteBufConverter,JacksonStringConverter,ObjectDecoder,ParameterConverter,StringCompositeConverter,StringConverter,TextByteBufMediaTypeConverter
A decoder that can decode an object to a collection of objects.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T extends To>
T[]decodeToArray(From value, Class<T> type) Decodes the specified value whose type is represented by the specified class to an array of decoded values.<T extends To>
T[]decodeToArray(From value, Type type) Decodes the specified value whose type is the specified type to an array of decoded values.decodeToList(From value, Class<T> type) Decodes the specified value whose type is represented by the specified class to a list of decoded values.decodeToList(From value, Type type) Decodes the specified value whose type is the specified type to a list of decoded values.decodeToSet(From value, Class<T> type) Decodes the specified value whose type is represented by the specified class to a set of decoded values.decodeToSet(From value, Type type) Decodes the specified value whose type is the specified type to a set of decoded values.
-
Method Details
-
decodeToList
Decodes the specified value whose type is represented by the specified class to a list of decoded values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the value to decodetype- the class of the decoded object- Returns:
- a list of decoded values
-
decodeToList
Decodes the specified value whose type is the specified type to a list of decoded values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the value to decodetype- the type of the decoded object- Returns:
- a list of decoded values
-
decodeToSet
Decodes the specified value whose type is represented by the specified class to a set of decoded values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the value to decodetype- the class of the decoded object- Returns:
- a set of decoded values
-
decodeToSet
Decodes the specified value whose type is the specified type to a set of decoded values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the value to decodetype- the type of the decoded object- Returns:
- a set of decoded values
-
decodeToArray
Decodes the specified value whose type is represented by the specified class to an array of decoded values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the value to decodetype- the class of the decoded object- Returns:
- an array of decoded values
-
decodeToArray
Decodes the specified value whose type is the specified type to an array of decoded values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the value to decodetype- the type of the decoded object- Returns:
- an array of decoded values
-