Class TypeDescription.Generic.OfNonGenericType.ForLoadedType

    • Constructor Detail

      • ForLoadedType

        public ForLoadedType​(Class<?> type)
        Creates a new description of a generic type of a loaded type. This constructor should not normally be used. Use of(Class) instead.
        Parameters:
        type - The represented type.
      • ForLoadedType

        protected ForLoadedType​(Class<?> type,
                                TypeDescription.Generic.AnnotationReader annotationReader)
        /** Creates a new description of a generic type of a loaded type.
        Parameters:
        type - The represented type.
        annotationReader - The annotation reader to query for the non-generic type's annotations.