Interface InputConverter<T,S>
-
- Type Parameters:
T- The actual argument type of an exposed methodS- The substitute type as which the argument values are to be deserialized
- All Superinterfaces:
TypeSubstituter
- All Known Implementing Classes:
AbstractSimpleTypeAdapter,AbstractTypeAdapter,CompletableFutureAdapter,EnumMapToObjectTypeAdapter,IdAdapter,IterableAdapter,JsonArrayAdapter,JsonNodeAdapter,MapToListTypeAdapter,OptionalAdapter,OptionalDoubleAdapter,OptionalIntAdapter,OptionalLongAdapter,StreamToCollectionTypeAdapter
public interface InputConverter<T,S> extends TypeSubstituter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TconvertInput(S substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)AnnotatedTypegetSubstituteType(AnnotatedType original)The returned type has to erase toClass<S>booleansupports(AnnotatedType type)
-
-
-
Method Detail
-
convertInput
T convertInput(S substitute, AnnotatedType type, GlobalEnvironment environment, ValueMapper valueMapper)
-
supports
boolean supports(AnnotatedType type)
-
getSubstituteType
AnnotatedType getSubstituteType(AnnotatedType original)
The returned type has to erase toClass<S>- Specified by:
getSubstituteTypein interfaceTypeSubstituter- Parameters:
original- The original type of the input value- Returns:
- The type of the input value this converter produces for the given original type
-
-