public interface Localization extends Serializable
LocalizationContext
to provide Locale
and optional settings
for numbers and dates format.
This interface supports hierarchical localizations through getParent()
, allowing fallback behaviours when
some localization data is not available for given Locale.
Modifier and Type | Interface and Description |
---|---|
static interface |
Localization.Builder
Builder to create
Localization instances |
Modifier and Type | Method and Description |
---|---|
static Localization.Builder |
builder(Locale locale)
Builder to create
Localization instances |
Optional<TemporalFormat> |
getDefaultDateTemporalFormat()
Default dates format style to use when
TemporalFormat.DEFAULT is specified. |
Optional<Integer> |
getDefaultDecimalPositions()
Default decimal position for decimal numbers format
|
Optional<TemporalFormat> |
getDefaultTimeTemporalFormat()
Default times format style to use when
TemporalFormat.DEFAULT is specified. |
Locale |
getLocale()
Locale to which this localization informations refer
|
Optional<Localization> |
getParent()
Optional parent Localization for fallback behaviours
|
Locale getLocale()
Optional<Localization> getParent()
Optional<Integer> getDefaultDecimalPositions()
Locale
's defaultOptional<TemporalFormat> getDefaultDateTemporalFormat()
TemporalFormat.DEFAULT
is specified.Optional<TemporalFormat> getDefaultTimeTemporalFormat()
TemporalFormat.DEFAULT
is specified.static Localization.Builder builder(Locale locale)
Localization
instanceslocale
- Locale bound to Localization (not null)Copyright © 2018 The Holon Platform. All rights reserved.