diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-05-16 12:01:26 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-05-16 12:01:26 +0200 |
commit | b05b73954124fc24fa488cd0ba4da3f84caaee3b (patch) | |
tree | bad113f44a2fccbea76b062d05bcb1e863b6d8fd /sonar-plugin-api/src | |
parent | fe59546912c82b0670585bbe64c76c4cf39808a1 (diff) | |
download | sonarqube-b05b73954124fc24fa488cd0ba4da3f84caaee3b.tar.gz sonarqube-b05b73954124fc24fa488cd0ba4da3f84caaee3b.zip |
SONAR-5305 Returned measures in /api/components/app
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java index cef56a58201..3cc0936c099 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/i18n/I18n.java @@ -102,4 +102,22 @@ public interface I18n extends ServerComponent, BatchComponent { */ String formatDate(Locale locale, Date date); + /** + * Return the formatted decimal, with always one fraction digit. + * <br> + * Example : formatDouble(Locale.FRENCH, 10.56) -> 10,6 + * + * @since 4.4 + */ + String formatDouble(Locale locale, Double value); + + /** + * Return the formatted integer. + * <br> + * Example : formatInteger(Locale.ENGLISH, 100000) -> 100,000 + * + * @since 4.4 + */ + String formatInteger(Locale locale, Integer value); + } |