Class ParameterizedTypeImpl

  • All Implemented Interfaces:
    java.lang.reflect.ParameterizedType, java.lang.reflect.Type

    class ParameterizedTypeImpl
    extends java.lang.Object
    implements java.lang.reflect.ParameterizedType
    An implementation of ParameterizedType, used to replace type variables with concrete types.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Type[] actualTypeArguments
      The actual type arguments.
      static java.lang.reflect.Type LIST_OF_UNKNOWN_TYPE
      The type parameter of List instances of unknown generic type.
      static java.lang.reflect.Type MAP_OF_UNKNOWN_TYPE
      The type parameters of Map instances of unknown generic type.
      private java.lang.reflect.Type ownerType
      The owner type.
      private java.lang.Class<?> rawType
      The raw type.
    • Constructor Summary

      Constructors 
      Constructor Description
      ParameterizedTypeImpl​(java.lang.Class<?> rawType, java.lang.reflect.Type[] actualTypeArguments, java.lang.reflect.Type ownerType)
      Constructor.
    • Field Detail

      • actualTypeArguments

        private final java.lang.reflect.Type[] actualTypeArguments
        The actual type arguments.
      • rawType

        private final java.lang.Class<?> rawType
        The raw type.
      • ownerType

        private final java.lang.reflect.Type ownerType
        The owner type.
      • MAP_OF_UNKNOWN_TYPE

        public static final java.lang.reflect.Type MAP_OF_UNKNOWN_TYPE
        The type parameters of Map instances of unknown generic type.
      • LIST_OF_UNKNOWN_TYPE

        public static final java.lang.reflect.Type LIST_OF_UNKNOWN_TYPE
        The type parameter of List instances of unknown generic type.
    • Constructor Detail

      • ParameterizedTypeImpl

        ParameterizedTypeImpl​(java.lang.Class<?> rawType,
                              java.lang.reflect.Type[] actualTypeArguments,
                              java.lang.reflect.Type ownerType)
        Constructor.
        Parameters:
        rawType - the raw type
        actualTypeArguments - the actual type arguments
        ownerType - the owner type
    • Method Detail

      • getActualTypeArguments

        public java.lang.reflect.Type[] getActualTypeArguments()
        Specified by:
        getActualTypeArguments in interface java.lang.reflect.ParameterizedType
      • getRawType

        public java.lang.Class<?> getRawType()
        Specified by:
        getRawType in interface java.lang.reflect.ParameterizedType
      • getOwnerType

        public java.lang.reflect.Type getOwnerType()
        Specified by:
        getOwnerType in interface java.lang.reflect.ParameterizedType
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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