java.lang.Object
io.inverno.mod.base.reflect.GenericTypeVariableBuilder<A>
- Type Parameters:
A
- the type of the parent builder
- All Implemented Interfaces:
TypeVariableBuilder<A>
Generic TypeVariableBuilder
implementation.
- Since:
- 1.2
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionGenericTypeVariableBuilder
(A parentBuilder, TypeVariable<?> rawTypeVariable, String name, Consumer<Type> typeInjector) Creates a generic type variable builder with the specified name and based on the specified underlying type variable. -
Method Summary
Modifier and TypeMethodDescriptionand()
Finalizes this builder and returns the parent builder.Specifies the bound type of the type variable.
-
Constructor Details
-
GenericTypeVariableBuilder
public GenericTypeVariableBuilder(A parentBuilder, TypeVariable<?> rawTypeVariable, String name, Consumer<Type> typeInjector) Creates a generic type variable builder with the specified name and based on the specified underlying type variable.
- Parameters:
parentBuilder
- the parent builderrawTypeVariable
- the underlying type variablename
- the name of the type variabletypeInjector
- the resulting type injector to invoke when the builder is finalized.
-
-
Method Details
-
boundType
Description copied from interface:TypeVariableBuilder
Specifies the bound type of the type variable.
- Specified by:
boundType
in interfaceTypeVariableBuilder<A>
- Parameters:
rawType
- an erased type- Returns:
- a type argument builder with this builder as parent
-
and
Description copied from interface:TypeVariableBuilder
Finalizes this builder and returns the parent builder.
- Specified by:
and
in interfaceTypeVariableBuilder<A>
- Returns:
- the parent builder
-