Interface ImmutableArgumentConversionContext<T>
- Type Parameters:
T- The generic type
- All Superinterfaces:
AnnotationMetadataProvider, AnnotationSource, ArgumentConversionContext<T>, ConversionContext, ErrorsContext, Iterable<ConversionError>, TypeVariableResolver
Immutable variant of
ArgumentConversionContext that can be used as a constant
in cases where conversion error handling and rejection is not required.- Since:
- 3.2.7
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface AnnotationSource
EMPTYFields inherited from interface ConversionContext
BOOLEAN, DEFAULT, INT, LIST_OF_STRING, LONG, MAP, STRING -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> ImmutableArgumentConversionContext<T> Create a new simpleConversionContextfor the given generic type variables.static <T> ImmutableArgumentConversionContext<T> Create a simpleConversionContextfor the given generic type variables.Methods inherited from interface AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface ArgumentConversionContext
getAnnotationMetadata, getArgument, getTypeParameters, getTypeVariables, withMethods inherited from interface ConversionContext
getCharset, getLocale, withMethods inherited from interface ErrorsContext
getLastError, hasErrors, iterator, reject, rejectMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface TypeVariableResolver
getFirstTypeVariable, getTypeVariable
-
Method Details
-
of
Create a new simpleConversionContextfor 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.
- Type Parameters:
T- type Generic- Parameters:
argument- The argument- Returns:
- The conversion context
- Since:
- 3.2.7
-
of
Create a simpleConversionContextfor 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.
- Type Parameters:
T- type Generic- Parameters:
type- The argument- Returns:
- The conversion context
- Since:
- 3.2.7
-