- All Superinterfaces:
TypeArgument.OfTyped
- All Known Implementing Classes:
TypeArgument.OfExtends,TypeArgument.OfSuper
- Enclosing class:
- TypeArgument
public static sealed interface TypeArgument.OfBounded
extends TypeArgument.OfTyped
permits TypeArgument.OfExtends, TypeArgument.OfSuper
A wildcard type argument that has a bound.
The bound is the type contained by this type argument.
-
Method Summary
Modifier and TypeMethodDescriptionbound()Returns the bound of this wildcard (notnull).default GenericType.OfReferencetype()
-
Method Details
-
type
- Specified by:
typein interfaceTypeArgument.OfTyped
-
bound
GenericType.OfReference bound()Returns the bound of this wildcard (notnull).- Returns:
- the bound of this wildcard (not
null)
-