TypedArgumentConverter is an abstract base class for
ArgumentConverter implementations that always convert objects of a
given source type into a given target type.
ArgumentConverter, SimpleArgumentConverter
| Access | Constructor and Description |
|---|---|
| protected | TypedArgumentConverter(Class<S>
the type of the argument to convert; never sourceType, Class<@NonNull T> nullthe type of the target object to create from the source;
never targetType)nullCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| public final @Nullable Object | |
| public final @Nullable Object | |
| private T | |
| protected abstract T |
| sourceType | back to summary |
|---|---|
| private final Class<S> sourceType | |
| targetType | back to summary |
|---|---|
| private final Class<T> targetType | |
| TypedArgumentConverter | back to summary |
|---|---|
| protected TypedArgumentConverter(Class<S> sourceType, Class<@NonNull T> targetType) Create a new | |
| convert | back to summary |
|---|---|
public final @Nullable Object convert(@Nullable Object source, ParameterContext context) throws ArgumentConversionException
| |
| convert | back to summary |
|---|---|
public final @Nullable Object convert(@Nullable Object source, FieldContext context) throws ArgumentConversionException
| |
| convert | back to summary |
|---|---|
| private T convert(@Nullable Object source, Class<?> actualTargetType) | |
| convert | back to summary |
|---|---|
| protected abstract T convert(@Nullable S source) throws ArgumentConversionException Convert the supplied
| |