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 interface
Models a type argument with an explicit bound type.static interface
Models an unbounded type argument*
. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Signature.TypeArg.Bounded
bounded
(Signature.TypeArg.Bounded.WildcardIndicator wildcard, Signature.RefTypeSig boundType) Returns a bounded type arg.static Signature.TypeArg.Bounded
extendsOf
(Signature.RefTypeSig boundType) Returns an upper-bounded type arg.static Signature.TypeArg.Bounded
of
(Signature.RefTypeSig boundType) Returns a bounded type arg.static Signature.TypeArg.Bounded
superOf
(Signature.RefTypeSig boundType) Returns a lower-bounded type arg.static Signature.TypeArg.Unbounded
Returns 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
-