Interface AnnotationValue.OfBoolean

All Superinterfaces:
AnnotationValuePREVIEW, AnnotationValue.OfConstantPREVIEW, ClassFileElementPREVIEW, WritableElementPREVIEW<AnnotationValuePREVIEW>
Enclosing interface:
AnnotationValuePREVIEW

public static sealed interface AnnotationValue.OfBoolean extends AnnotationValue.OfConstantPREVIEW
OfBoolean is a preview API of the Java platform.
Programs can only use OfBoolean when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a constant-valued element
Since:
22
  • Method Details

    • booleanValue

      boolean booleanValue()
      Returns the constant.
      Returns:
      the constant