SimpleArgumentConverter is an abstract base class for
ArgumentConverter implementations that only need to know the target
type and do not need access to the ParameterContext to perform the
conversion.
ArgumentConverter, TypedArgumentConverter
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final @Nullable Object | |
| public final @Nullable Object | |
| protected abstract @Nullable Object | Returns: the converted object; may benull but only if the target
type is a reference typethe source object to convert; may be source, Class<?> nullthe target type the source object should be converted
into; never targetType)nullConvert the supplied |
| SimpleArgumentConverter | back to summary |
|---|---|
| public SimpleArgumentConverter() | |
| 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 |
|---|---|
| protected abstract @Nullable Object convert(@Nullable Object source, Class<?> targetType) throws ArgumentConversionException Convert the supplied
| |