Interface WildcardTypeArgumentBuilder<A>

Type Parameters:
A - the type of the parent builder

public interface WildcardTypeArgumentBuilder<A>

A wildcard type argument builder is used to specify the bounds of a parameterized type argument.

Author:
Jeremy Kuhn
  • Method Details

    • upperBoundType

      Specifies the upper bound type of the parameterized type argument.

      Parameters:
      rawType - an erased type
      Returns:
      a type argument builder with this builder as parent
    • upperBoundType

      WildcardTypeArgumentBuilder<A> upperBoundType(Type type)

      Specifies the upper bound type of the parameterized type argument.

      Parameters:
      type - a type
      Returns:
      this builder
    • upperBoundArrayType

      Specifies an array type as upper bound type of the parameterized type argument.

      Returns:
      an array type argument builder with this builder as parent
    • lowerBoundType

      Specifies the lower bound type of the parameterized type argument.

      Parameters:
      rawType - an erased type
      Returns:
      a type argument builder with this builder as parent
    • lowerBoundType

      WildcardTypeArgumentBuilder<A> lowerBoundType(Type type)

      Specifies the lower bound type of the parameterized type argument.

      Parameters:
      type - a type
      Returns:
      this builder
    • lowerBoundArrayType

      Specifies an array type as lower bound type of the parameterized type argument.

      Returns:
      an array type argument builder with this builder as parent
    • and

      A and()

      Finalizes this builder and returns the parent builder.

      Returns:
      the parent builder
      Throws:
      IllegalStateException - if the builder is not in a proper state to be finalized