@FunctionalInterface
public interface Converter<T>
ArgumentConverter
. Only contains the conversion.Modifier and Type | Method and Description |
---|---|
ConversionResult<T> |
convert(java.lang.String argument,
InjectedValueAccess context)
Converts the argument input to a collection of argument values.
|
ConversionResult<T> convert(java.lang.String argument, InjectedValueAccess context)
This method should be pure, i.e. it should not send any
error messages to anything in the context
. This could
result in spurious error messages during parsing.
argument
- the argument input to convertcontext
- the context to convert in