Class TypeUtils.WildcardTypeBuilder

  • Enclosing class:
    TypeUtils

    public static class TypeUtils.WildcardTypeBuilder
    extends java.lang.Object
    WildcardType builder.
    Since:
    3.2
    • Method Detail

      • build

        public java.lang.reflect.WildcardType build()
        Builds the type.
        Returns:
        a WildcardType, never null
      • withLowerBounds

        public TypeUtils.WildcardTypeBuilder withLowerBounds​(java.lang.reflect.Type... bounds)
        Specify lower bounds of the wildcard type to build.
        Parameters:
        bounds - to set
        Returns:
        this
      • withUpperBounds

        public TypeUtils.WildcardTypeBuilder withUpperBounds​(java.lang.reflect.Type... bounds)
        Specify upper bounds of the wildcard type to build.
        Parameters:
        bounds - to set
        Returns:
        this