Signaturepublic static sealed interface Signature.TypeParam
| Modifier and Type | Method | Description |
|---|---|---|
Optional |
classBound() |
Returns the class bound of the type parameter. |
String |
identifier() |
Returns the name of the type parameter. |
List |
interfaceBounds() |
Returns the interface bounds of the type parameter. |
static Signature.TypeParam |
of |
Returns a signature for a type parameter. |
static Signature.TypeParam |
of |
Returns a signature for a type parameter. |
String identifier()
Optional<Signature.RefTypeSig> classBound()
List<Signature.RefTypeSig> interfaceBounds()
static Signature.TypeParam of(String identifier, Signature.RefTypeSig classBound, Signature.RefTypeSig... interfaceBounds)
identifier - the name of the type parameterclassBound - the class bound of the type parameter, may be null
interfaceBounds - the interface bounds of the type parameterstatic Signature.TypeParam of(String identifier, Optional<Signature.RefTypeSig> classBound, Signature.RefTypeSig... interfaceBounds)
identifier - the name of the type parameterclassBound - the optional class bound of the type parameterinterfaceBounds - the interface bounds of the type parameter
© 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.TypeParam.html