public interface ConversionContext extends AnnotationMetadataProvider, TypeVariableResolver, ErrorsContext
TypeConverter that allows more accurate conversion.| Modifier and Type | Field and Description | 
|---|---|
static ConversionContext | 
DEFAULT
The default conversion context. 
 | 
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 simple  
ConversionContext for the given generic type variables. | 
static <T> ArgumentConversionContext | 
of(Argument<T> argument,
  Locale locale)
Create a simple  
ConversionContext for the given generic type variables. | 
static <T> ArgumentConversionContext<T> | 
of(Argument<T> argument,
  Locale locale,
  Charset charset)
Create a simple  
ConversionContext for the given generic type variables. | 
static <T> ArgumentConversionContext<T> | 
of(Class<T> argument)
Create a simple  
ConversionContext for the given generic type variables. | 
static ConversionContext | 
of(Map<String,Argument<?>> typeVariables)
Create a simple  
ConversionContext for 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, getDeclaredAnnotationgetFirstTypeVariable, getTypeParameters, getTypeVariablegetLastError, iterator, reject, rejectforEach, spliteratorstatic final ConversionContext DEFAULT
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.T - type Genericargument - The argumentstatic <T> ArgumentConversionContext<T> of(Class<T> argument)
ConversionContext for the given generic type variables.T - type Genericargument - The argumentstatic <T> ArgumentConversionContext of(Argument<T> argument, @Nullable Locale locale)
ConversionContext for the given generic type variables.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.T - type Genericargument - The argumentlocale - The localecharset - The charset