Interface ImmutableArgumentConversionContext<T>

Type Parameters:
T - The generic type
All Superinterfaces:
AnnotationMetadataProvider, AnnotationSource, ArgumentConversionContext<T>, ConversionContext, ErrorsContext, Iterable<ConversionError>, TypeVariableResolver

public interface ImmutableArgumentConversionContext<T> extends ArgumentConversionContext<T>
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
  • Method Details

    • of

      static <T> ImmutableArgumentConversionContext<T> of(Argument<T> argument)
      Create a new simple 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.

      Type Parameters:
      T - type Generic
      Parameters:
      argument - The argument
      Returns:
      The conversion context
      Since:
      3.2.7
    • of

      static <T> ImmutableArgumentConversionContext<T> of(Class<T> type)
      Create a simple 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.

      Type Parameters:
      T - type Generic
      Parameters:
      type - The argument
      Returns:
      The conversion context
      Since:
      3.2.7