Interface Signature.TypeArg
- All Known Subinterfaces:
Signature.TypeArg.Bounded,Signature.TypeArg.Unbounded
- Enclosing interface:
Signature
public static sealed interface Signature.TypeArg
permits Signature.TypeArg.Unbounded, Signature.TypeArg.Bounded
Models the type argument.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceModels a type argument with an explicit bound type.static interfaceModels an unbounded type argument*. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Signature.TypeArg.Boundedbounded(Signature.TypeArg.Bounded.WildcardIndicator wildcard, Signature.RefTypeSig boundType) Returns a bounded type arg.static Signature.TypeArg.BoundedextendsOf(Signature.RefTypeSig boundType) Returns an upper-bounded type arg.static Signature.TypeArg.Boundedof(Signature.RefTypeSig boundType) Returns a bounded type arg.static Signature.TypeArg.BoundedsuperOf(Signature.RefTypeSig boundType) Returns a lower-bounded type arg.static Signature.TypeArg.UnboundedReturns an unbounded type arg.
-
Method Details
-
of
Returns a bounded type arg.- Parameters:
boundType- the bound- Returns:
- a bounded type arg
-
unbounded
Returns an unbounded type arg.- Returns:
- an unbounded type arg
-
extendsOf
Returns an upper-bounded type arg.- Parameters:
boundType- the upper bound- Returns:
- an upper-bounded type arg
-
superOf
Returns a lower-bounded type arg.- Parameters:
boundType- the lower bound- Returns:
- a lower-bounded type arg
-
bounded
static Signature.TypeArg.Bounded bounded(Signature.TypeArg.Bounded.WildcardIndicator wildcard, Signature.RefTypeSig boundType) Returns a bounded type arg.- Parameters:
wildcard- the wild cardboundType- optional bound type- Returns:
- a bounded type arg
-