Annotation Interface Percentage

@Retention(RUNTIME) @Target({FIELD,TYPE,METHOD}) public @interface Percentage
Event field annotation to use on fractions, typically between 0.0 and 1.0, to specify 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

© 1993, 2021, 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/17/docs/api/jdk.jfr/jdk/jfr/Percentage.html