- Type Parameters:
A
- the type of the parent builder
public interface TypeArgumentBuilder<A>
A type argument builder is used to specify the arguments of a parameterized type.
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionand()
Finalizes this builder and returns the parent builder.Specifies an array type as the next argument of the parameterized type.Specifies the owner type of the parameterized type.Specifies a type as the next argument of the parameterized type.Specifies a type as the next argument of the parameterized type.variableType
(String name) Specifies a variable type as the next argument of the parameterized type.Specifies a wildcard type as the next argument of the parameterized type.
-
Method Details
-
type
Specifies a type as the next argument of the parameterized type.
- Parameters:
rawType
- an erased type- Returns:
- a type argument builder with this builder as parent
-
type
Specifies a type as the next argument of the parameterized type.
- Parameters:
type
- a type- Returns:
- this builder
-
variableType
Specifies a variable type as the next argument of the parameterized type.
- Parameters:
name
- The name of the variable- Returns:
- a type variable builder with this builder as parent
-
wildcardType
WildcardTypeArgumentBuilder<TypeArgumentBuilder<A>> wildcardType()Specifies a wildcard type as the next argument of the parameterized type.
- Returns:
- a wildcard type argument builder with this builder as parent
-
arrayType
ArrayTypeArgumentBuilder<TypeArgumentBuilder<A>> arrayType()Specifies an array type as the next argument of the parameterized type.
- Returns:
- an array type argument builder with this builder as parent
-
ownerType
Specifies the owner type of the parameterized type.
- Parameters:
rawType
- the owner type to set- Returns:
- a type argument builder with this builder as parent
-
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
-