Package org.jboss.jandex
Class WildcardType.Builder
- java.lang.Object
-
- org.jboss.jandex.Type.Builder<WildcardType.Builder>
-
- org.jboss.jandex.WildcardType.Builder
-
- Enclosing class:
- WildcardType
public static final class WildcardType.Builder extends Type.Builder<WildcardType.Builder>
Convenient builder forWildcardType.Note that only one bound may be set. If the
setUpperBound()andsetLowerBound()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
Fields Modifier and Type Field Description private Typeboundprivate booleanisExtends-
Fields inherited from class org.jboss.jandex.Type.Builder
annotations, name
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WildcardTypebuild()Returns the built wildcard type.WildcardType.BuildersetLowerBound(java.lang.Class<?> lowerBound)Sets the lower bound.WildcardType.BuildersetLowerBound(Type lowerBound)Sets the lower bound.WildcardType.BuildersetUpperBound(java.lang.Class<?> upperBound)Sets the upper bound.WildcardType.BuildersetUpperBound(Type upperBound)Sets the upper bound.-
Methods inherited from class org.jboss.jandex.Type.Builder
addAnnotation, annotationsArray, self
-
-
-
-
Field Detail
-
isExtends
private boolean isExtends
-
bound
private Type bound
-
-
Method Detail
-
setUpperBound
public WildcardType.Builder setUpperBound(java.lang.Class<?> upperBound)
Sets the upper bound.- Parameters:
upperBound- the class whose type is set as the upper bound, must not benull- Returns:
- this builder
-
setUpperBound
public WildcardType.Builder setUpperBound(Type upperBound)
Sets the upper bound.- Parameters:
upperBound- the upper bound, must not benull- Returns:
- this builder
-
setLowerBound
public WildcardType.Builder setLowerBound(java.lang.Class<?> lowerBound)
Sets the lower bound.- Parameters:
lowerBound- the class whose type is set as the lower bound, must not benull- Returns:
- this builder
-
setLowerBound
public WildcardType.Builder setLowerBound(Type lowerBound)
Sets the lower bound.- Parameters:
lowerBound- the lower bound, must not benull- Returns:
- this builder
-
build
public WildcardType build()
Returns the built wildcard type.- Returns:
- the built wildcard type
-
-