Package org.jboss.jandex
Class TypeVariable.Builder
- Enclosing class:
TypeVariable
Convenient builder for
TypeVariable
. If no bound is added, the built
type variable will have a single bound of java.lang.Object
.- Since:
- 3.1.0
-
Field Summary
FieldsFields inherited from class org.jboss.jandex.Type.Builder
annotations, name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a bound.Adds a bound.build()
Returns the built type variable.Methods inherited from class org.jboss.jandex.Type.Builder
addAnnotation, annotationsArray, self
-
Field Details
-
identifier
-
bounds
-
-
Constructor Details
-
Builder
Builder(String identifier)
-
-
Method Details
-
addBound
Adds a bound.- Parameters:
bound
- the bound, must not benull
- Returns:
- this builder
-
addBound
Adds a bound.- Parameters:
clazz
- the class whose type is added as a bound, must not benull
- Returns:
- this builder
-
build
Returns the built type variable.- Returns:
- the built type variable
-