Class Generics.GenericType

  • Enclosing interface:
    Generics

    public static class Generics.GenericType
    extends java.lang.Object
    Stores a type and its type parameters, recursively.
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericType​(java.lang.Class fromClass, java.lang.Class toClass, java.lang.reflect.Type context)  
    • Constructor Detail

      • GenericType

        public GenericType​(java.lang.Class fromClass,
                           java.lang.Class toClass,
                           java.lang.reflect.Type context)
    • Method Detail

      • resolve

        public java.lang.Class resolve​(Generics generics)
        If this type is a type variable, resolve it to a class.
        Returns:
        May be null.
      • getType

        public java.lang.reflect.Type getType()
      • toString

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