public interface ConversionContext extends AnnotationMetadataProvider, TypeVariableResolver, ErrorsContext
TypeConverter that allows more accurate conversion.| Modifier and Type | Field and Description | 
|---|---|
| static ArgumentConversionContext<Boolean> | BOOLEANConstant for Boolean argument. | 
| static ConversionContext | DEFAULTThe default conversion context. | 
| static ArgumentConversionContext<Integer> | INTConstant for Integer argument. | 
| static ArgumentConversionContext<List<String>> | LIST_OF_STRINGConstant for  List<String>argument. | 
| static ArgumentConversionContext<Long> | LONGConstant for Long argument. | 
| static ArgumentConversionContext<Map> | MAPConstant for  List<String>argument. | 
| static ArgumentConversionContext<String> | STRINGConstant for String argument. | 
EMPTY| Modifier and Type | Method and Description | 
|---|---|
| default Charset | getCharset() | 
| default Locale | getLocale() | 
| default Map<String,Argument<?>> | getTypeVariables()In the case where the type to be converted contains generic type arguments this map will return
 the concrete types of those arguments. | 
| static <T> ArgumentConversionContext<T> | of(Argument<T> argument)Create a new simple  ConversionContextfor the given generic type variables. | 
| static <T> ArgumentConversionContext | of(Argument<T> argument,
  Locale locale)Create a simple  ConversionContextfor the given generic type variables. | 
| static <T> ArgumentConversionContext<T> | of(Argument<T> argument,
  Locale locale,
  Charset charset)Create a simple  ConversionContextfor the given generic type variables. | 
| static <T> ArgumentConversionContext<T> | of(Class<T> argument)Create a simple  ConversionContextfor the given generic type variables. | 
| static ConversionContext | of(Map<String,Argument<?>> typeVariables)Create a simple  ConversionContextfor the given generic type variables. | 
| default <T> ArgumentConversionContext<T> | with(Argument<T> argument)Augment this context with data for the given argument. | 
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredgetFirstTypeVariable, getTypeParameters, getTypeVariablegetLastError, hasErrors, iterator, reject, rejectforEach, spliteratorstatic final ConversionContext DEFAULT
static final ArgumentConversionContext<Boolean> BOOLEAN
static final ArgumentConversionContext<Integer> INT
static final ArgumentConversionContext<Long> LONG
static final ArgumentConversionContext<String> STRING
static final ArgumentConversionContext<List<String>> LIST_OF_STRING
List<String> argument.static final ArgumentConversionContext<Map> MAP
List<String> argument.default Map<String,Argument<?>> getTypeVariables()
Map type two keys will be present
 called 'K' and 'V' with the actual types of the key and value.getTypeVariables in interface TypeVariableResolverdefault Locale getLocale()
default Charset getCharset()
default <T> ArgumentConversionContext<T> with(Argument<T> argument)
T - type Genericargument - The argumentstatic ConversionContext of(Map<String,Argument<?>> typeVariables)
ConversionContext for the given generic type variables.typeVariables - The type variablesstatic <T> ArgumentConversionContext<T> of(Argument<T> argument)
ConversionContext for the given generic type variables.
 NOTE: The instance returned by this method is NOT thread safe and should be shared
 via static state or between threads. Consider using ImmutableArgumentConversionContext for this case.
T - type Genericargument - The argumentstatic <T> ArgumentConversionContext<T> of(Class<T> argument)
ConversionContext for the given generic type variables.
 NOTE: The instance returned by this method is NOT thread safe and should be shared
 via static state or between threads. Consider using ImmutableArgumentConversionContext for this case.
T - type Genericargument - The argumentstatic <T> ArgumentConversionContext of(Argument<T> argument, @Nullable Locale locale)
ConversionContext for the given generic type variables.
 NOTE: The instance returned by this method is NOT thread safe and should be shared
 via static state or between threads. Consider using ImmutableArgumentConversionContext for this case.
T - type Genericargument - The argumentlocale - The localestatic <T> ArgumentConversionContext<T> of(Argument<T> argument, @Nullable Locale locale, @Nullable Charset charset)
ConversionContext for the given generic type variables.
 NOTE: The instance returned by this method is NOT thread safe and should be shared
 via static state or between threads. Consider using ImmutableArgumentConversionContext for this case.
T - type Genericargument - The argumentlocale - The localecharset - The charset