Class TypeDescription.Generic.OfWildcardType.Latent

    • Constructor Detail

      • Latent

        protected Latent​(List<? extends TypeDescription.Generic> upperBounds,
                         List<? extends TypeDescription.Generic> lowerBounds,
                         AnnotationSource annotationSource)
        Creates a description of a latent wildcard.
        Parameters:
        upperBounds - The wildcard's upper bounds.
        lowerBounds - The wildcard's lower bounds.
        annotationSource - The annotation source to query for the declared annotations.
    • Method Detail

      • unbounded

        public static TypeDescription.Generic unbounded​(AnnotationSource annotationSource)
        Creates an unbounded wildcard. Such a wildcard is implicitly bound above by the Object type.
        Parameters:
        annotationSource - The annotation source to query for the declared annotations.
        Returns:
        A description of an unbounded wildcard.
      • boundedAbove

        public static TypeDescription.Generic boundedAbove​(TypeDescription.Generic upperBound,
                                                           AnnotationSource annotationSource)
        Creates a wildcard with an upper bound.
        Parameters:
        upperBound - The upper bound of the wildcard.
        annotationSource - The annotation source to query for the declared annotations.
        Returns:
        A wildcard with the given upper bound.
      • boundedBelow

        public static TypeDescription.Generic boundedBelow​(TypeDescription.Generic lowerBound,
                                                           AnnotationSource annotationSource)
        Creates a wildcard with a lower bound. Such a wildcard is implicitly bounded above by the Object type.
        Parameters:
        lowerBound - The lower bound of the wildcard.
        annotationSource - The annotation source to query for the declared annotations.
        Returns:
        A wildcard with the given lower bound.
      • getDeclaredAnnotations

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