Interface TypeVariableResolver

All Known Subinterfaces:
Argument<T>, ArgumentConversionContext<T>, ArgumentValue<V>, ConversionContext, GenericPlaceholder<T>, ImmutableArgumentConversionContext<T>, MutableArgumentValue<V>, ReturnType<T>, TypeInformation<T>
All Known Implementing Classes:
ArgumentBeanType, DefaultArgument, GenericArgument

public interface TypeVariableResolver
An interface for types that hold and can resolve type variables.
Since:
1.0
Author:
Graeme Rocher
  • Method Details

    • getTypeVariables

      default Map<String,Argument<?>> getTypeVariables()
      Returns:
      Obtain a map of the type parameters for the argument
    • getTypeParameters

      default Argument[] getTypeParameters()
      Returns:
      The type parameters as an array
    • getFirstTypeVariable

      default Optional<Argument<?>> getFirstTypeVariable()
      Returns:
      Return the first type parameter if it is present
    • getTypeVariable

      default Optional<Argument<?>> getTypeVariable(String name)
      Parameters:
      name - The name
      Returns:
      Return the first type parameter if it is present