Module io.inverno.mod.base
Package io.inverno.mod.base.reflect
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 Summary
Modifier and TypeMethodDescriptionand()
Finalizes this builder and returns the parent builder.Specifies an array type as lower bound type of the parameterized type argument.lowerBoundType
(Class<?> rawType) Specifies the lower bound type of the parameterized type argument.lowerBoundType
(Type type) Specifies the lower bound type of the parameterized type argument.Specifies an array type as upper bound type of the parameterized type argument.upperBoundType
(Class<?> rawType) Specifies the upper bound type of the parameterized type argument.upperBoundType
(Type type) Specifies the upper bound type of the parameterized type argument.
-
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
Specifies the upper bound type of the parameterized type argument.
- Parameters:
type
- a type- Returns:
- this builder
-
upperBoundArrayType
ArrayTypeArgumentBuilder<WildcardTypeArgumentBuilder<A>> 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
Specifies the lower bound type of the parameterized type argument.
- Parameters:
type
- a type- Returns:
- this builder
-
lowerBoundArrayType
ArrayTypeArgumentBuilder<WildcardTypeArgumentBuilder<A>> 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
-