Signature.TypeArg.Bounded, Signature.TypeArg.UnboundedSignaturepublic static sealed interface Signature.TypeArg permits Signature.TypeArg.Unbounded, Signature.TypeArg.Bounded
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
Signature.TypeArg.Bounded |
Models a type argument with an explicit bound type. |
static interface |
Signature.TypeArg.Unbounded |
Models an unbounded wildcard type argument *, or
? in Java programs. |
| Modifier and Type | Method | Description |
|---|---|---|
static Signature.TypeArg.Bounded |
bounded |
Returns a bounded type argument. |
static Signature.TypeArg.Bounded |
extendsOf |
Returns an upper-bounded wildcard type argument. |
static Signature.TypeArg.Bounded |
of |
Returns a type argument of a reference type. |
static Signature.TypeArg.Bounded |
superOf |
Returns a lower-bounded wildcard type argument. |
static Signature.TypeArg.Unbounded |
unbounded() |
Returns an unbounded wildcard type argument *. |
static Signature.TypeArg.Bounded of(Signature.RefTypeSig boundType)
boundType - the reference typestatic Signature.TypeArg.Unbounded unbounded()
*.*
static Signature.TypeArg.Bounded extendsOf(Signature.RefTypeSig boundType)
boundType - the upper boundstatic Signature.TypeArg.Bounded superOf(Signature.RefTypeSig boundType)
boundType - the lower boundstatic Signature.TypeArg.Bounded bounded(Signature.TypeArg.Bounded.WildcardIndicator wildcard, Signature.RefTypeSig boundType)
wildcard - the wildcard indicatorboundType - the bound type
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/Signature.TypeArg.html