? extends Number: has an upper bound? super Number: has a lower bound?: unbounded, has an implicit upper bound of java.lang.Object? is equivalent to ? extends Object and is represented as such.
Therefore, either upperBound() or lowerBound() always returns non-null.
| Modifier and Type | Method and Description |
|---|---|
| public default WildcardType | asWildcardType()
Overrides default jakarta. |
| public default Type. | |
| public Type | Returns: lower bound of this wildcard type, ornull if this wildcard type does not have a lower boundReturns the lower bound of this wildcard type. |
| public Type | Returns: upper bound of this wildcard type, ornull if this wildcard type does not have an upper boundReturns the upper bound of this wildcard type. |
| asWildcardType | back to summary |
|---|---|
| public default WildcardType asWildcardType() Overrides default jakarta. Doc from jakarta. Returns this type as a wildcard type.
| |
| kind | back to summary |
|---|---|
| public default Type. Implements jakarta. Doc from jakarta. Returns the kind of this type. | |
| lowerBound | back to summary |
|---|---|
| public Type lowerBound() Returns the lower bound of this wildcard type.
Returns
| |
| upperBound | back to summary |
|---|---|
| public Type upperBound() Returns the upper bound of this wildcard type.
Returns
| |