public final class L10n extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
format(org.joda.time.DateTime value)
Format the date time value.
|
String |
format(org.joda.time.LocalDate value)
Format the date value.
|
String |
format(org.joda.time.LocalDateTime value)
Format the date time value.
|
String |
format(Number value)
Format the number value.
|
String |
format(Number value,
boolean grouping)
Format the number value.
|
static L10n |
getInstance()
Get instance of
L10n using contextual locale. |
static L10n |
getInstance(Locale locale)
Get instance of
L10n for the given locale. |
public static L10n getInstance()
L10n using contextual locale.L10n instance for the contextpublic static L10n getInstance(Locale locale)
L10n for the given locale.locale - the locale instanceL10n instance for the given localepublic String format(Number value)
value - the value to formatpublic String format(Number value, boolean grouping)
value - the value to formatgrouping - whether to use grouping in formatpublic String format(org.joda.time.LocalDate value)
value - the value to formatpublic String format(org.joda.time.LocalDateTime value)
value - the value to formatpublic String format(org.joda.time.DateTime value)
value - the value to format