Package org.jboss.jandex
Class WildcardType.Builder
- Enclosing class:
WildcardType
Convenient builder for
WildcardType
.
Note that only one bound may be set. If the setUpperBound()
and
setLowerBound()
methods are called multiple times, only the last
call is taken into account; the previously set bounds are ignored.
- Since:
- 3.1.0
-
Field Summary
FieldsFields inherited from class org.jboss.jandex.Type.Builder
annotations, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the built wildcard type.setLowerBound
(Class<?> lowerBound) Sets the lower bound.setLowerBound
(Type lowerBound) Sets the lower bound.setUpperBound
(Class<?> upperBound) Sets the upper bound.setUpperBound
(Type upperBound) Sets the upper bound.Methods inherited from class org.jboss.jandex.Type.Builder
addAnnotation, annotationsArray, self
-
Field Details
-
isExtends
private boolean isExtends -
bound
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
setUpperBound
Sets the upper bound.- Parameters:
upperBound
- the class whose type is set as the upper bound, must not benull
- Returns:
- this builder
-
setUpperBound
Sets the upper bound.- Parameters:
upperBound
- the upper bound, must not benull
- Returns:
- this builder
-
setLowerBound
Sets the lower bound.- Parameters:
lowerBound
- the class whose type is set as the lower bound, must not benull
- Returns:
- this builder
-
setLowerBound
Sets the lower bound.- Parameters:
lowerBound
- the lower bound, must not benull
- Returns:
- this builder
-
build
Returns the built wildcard type.- Returns:
- the built wildcard type
-