Class TypeUtils.WildcardTypeBuilder

  • All Implemented Interfaces:
    Builder<java.lang.reflect.WildcardType>
    Enclosing class:
    TypeUtils

    public static class TypeUtils.WildcardTypeBuilder
    extends java.lang.Object
    implements Builder<java.lang.reflect.WildcardType>
    WildcardType builder.
    Since:
    3.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Type[] lowerBounds  
      private java.lang.reflect.Type[] upperBounds  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private WildcardTypeBuilder()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.WildcardType build()
      Returns a reference to the object being constructed or result being calculated by the builder.
      TypeUtils.WildcardTypeBuilder withLowerBounds​(java.lang.reflect.Type... bounds)
      Specify lower bounds of the wildcard type to build.
      TypeUtils.WildcardTypeBuilder withUpperBounds​(java.lang.reflect.Type... bounds)
      Specify upper bounds of the wildcard type to build.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • upperBounds

        private java.lang.reflect.Type[] upperBounds
      • lowerBounds

        private java.lang.reflect.Type[] lowerBounds
    • Constructor Detail

      • WildcardTypeBuilder

        private WildcardTypeBuilder()
        Constructor
    • Method Detail

      • build

        public java.lang.reflect.WildcardType build()
        Returns a reference to the object being constructed or result being calculated by the builder.
        Specified by:
        build in interface Builder<java.lang.reflect.WildcardType>
        Returns:
        the object constructed or result calculated by the builder.
      • 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