Class TypeVariable.Builder

    • Field Detail

      • identifier

        private final java.lang.String identifier
      • bounds

        private final java.util.List<Type> bounds
    • Constructor Detail

      • Builder

        Builder​(java.lang.String identifier)
    • Method Detail

      • addBound

        public TypeVariable.Builder addBound​(Type bound)
        Adds a bound.
        Parameters:
        bound - the bound, must not be null
        Returns:
        this builder
      • addBound

        public TypeVariable.Builder addBound​(java.lang.Class<?> clazz)
        Adds a bound.
        Parameters:
        clazz - the class whose type is added as a bound, must not be null
        Returns:
        this builder
      • build

        public TypeVariable build()
        Returns the built type variable.
        Returns:
        the built type variable