public final class L10n extends Object
Modifier and Type | Method and Description |
---|---|
String |
format(java.time.LocalDate value)
Format the date value.
|
String |
format(java.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.
|
String |
format(java.time.ZonedDateTime value)
Format the date time 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(java.time.LocalDate value)
value
- the value to formatpublic String format(java.time.LocalDateTime value)
value
- the value to formatpublic String format(java.time.ZonedDateTime value)
value
- the value to format