Interface Signature.TypeVarSig

All Superinterfaces:
SignaturePREVIEW, Signature.RefTypeSigPREVIEW, Signature.ThrowableSigPREVIEW
Enclosing interface:
SignaturePREVIEW

public static sealed interface Signature.TypeVarSig extends Signature.RefTypeSigPREVIEW, Signature.ThrowableSigPREVIEW
TypeVarSig is a preview API of the Java platform.
Programs can only use TypeVarSig when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models the signature of a type variable.
Since:
22
  • Method Details

    • identifier

      String identifier()
      Returns the name of the type variable.
      Returns:
      the name of the type variable
    • of

      static Signature.TypeVarSigPREVIEW of(String identifier)
      Returns a signature for a type variable.
      Parameters:
      identifier - the name of the type variable
      Returns:
      a signature for a type variable