public interface ConversionContext extends AnnotationMetadataProvider, TypeVariableResolver, ErrorsContext
TypeConverter that allows more accurate conversion.| Modifier and Type | Field and Description | 
|---|---|
static ArgumentConversionContext<Boolean> | 
BOOLEAN
Constant for Boolean argument. 
 | 
static ConversionContext | 
DEFAULT
The default conversion context. 
 | 
static ArgumentConversionContext<Integer> | 
INT
Constant for Integer argument. 
 | 
static ArgumentConversionContext<List<String>> | 
LIST_OF_STRING
Constant for List 
 | 
static ArgumentConversionContext<Long> | 
LONG
Constant for Long argument. 
 | 
static ArgumentConversionContext<Map> | 
MAP
Constant for List 
 | 
static ArgumentConversionContext<String> | 
STRING
Constant 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  
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, 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
static final ArgumentConversionContext<Map> MAP
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