Module jdk.jfr
Package jdk.jfr

Annotation Type Percentage


  • @Retention(RUNTIME)
    @Target({FIELD,TYPE,METHOD})
    public @interface Percentage
    Event field annotation to be used on fractions, typically between 0.0 and 1.0, to signify that the value is a percentage.

    For example, a field with the value 0.5 annotated by this annotation, should be interpreted as 50% and rendered in a graphical user interface with a percentage sign to avoid confusion with 0.005%.

    Since:
    9