From b05b73954124fc24fa488cd0ba4da3f84caaee3b Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 16 May 2014 12:01:26 +0200 Subject: SONAR-5305 Returned measures in /api/components/app --- .../src/main/java/org/sonar/api/i18n/I18n.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'sonar-plugin-api/src') 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. + *
+ * Example : formatDouble(Locale.FRENCH, 10.56) -> 10,6 + * + * @since 4.4 + */ + String formatDouble(Locale locale, Double value); + + /** + * Return the formatted integer. + *
+ * Example : formatInteger(Locale.ENGLISH, 100000) -> 100,000 + * + * @since 4.4 + */ + String formatInteger(Locale locale, Integer value); + } -- cgit v1.2.3