Class TypeResolutions


  • class TypeResolutions
    extends java.lang.Object
    A mapping from TypeVariable to resolved Type.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.reflect.Type[] resolvedTypeArguments
      The resolved type arguments.
      private java.lang.reflect.TypeVariable<?>[] typeVariables
      The type variables.
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeResolutions​(java.lang.reflect.ParameterizedType resolvedType)
      Produce a list of type variable resolutions from a resolved type, by comparing its actual type parameters with the generic (declared) parameters of its generic type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.reflect.Type resolveTypeVariables​(java.lang.reflect.Type type)
      Resolve the type variables in a type using a type variable resolution list, producing a resolved type.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • typeVariables

        private final java.lang.reflect.TypeVariable<?>[] typeVariables
        The type variables.
      • resolvedTypeArguments

        java.lang.reflect.Type[] resolvedTypeArguments
        The resolved type arguments.
    • Constructor Detail

      • TypeResolutions

        TypeResolutions​(java.lang.reflect.ParameterizedType resolvedType)
        Produce a list of type variable resolutions from a resolved type, by comparing its actual type parameters with the generic (declared) parameters of its generic type.
        Parameters:
        resolvedType - the resolved type
    • Method Detail

      • resolveTypeVariables

        java.lang.reflect.Type resolveTypeVariables​(java.lang.reflect.Type type)
        Resolve the type variables in a type using a type variable resolution list, producing a resolved type.
        Parameters:
        type - the type
        Returns:
        the resolved type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object