Class TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure

    • Constructor Detail

      • ForGenerifiedErasure

        protected ForGenerifiedErasure​(TypeDescription typeDescription)
        Creates a new generified erasure.
        Parameters:
        typeDescription - The represented erasure.
    • Method Detail

      • of

        public static TypeDescription.Generic of​(TypeDescription typeDescription)
        Represents the supplied type description as a generified erasure if it is generified or as a non-generic type if not so.
        Parameters:
        typeDescription - The represented erasure.
        Returns:
        An appropriate generic type.
      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.