Package com.helger.commons.text
Interface IMultilingualText
- All Superinterfaces:
IHasText,IHasTextWithArgs
- All Known Subinterfaces:
IMutableMultilingualText
- All Known Implementing Classes:
AbstractMapBasedMultilingualText,AbstractReadOnlyMapBasedMultilingualText,MultilingualText,ReadOnlyMultilingualText
Read-only interface for a multilingual text
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLocaleWithFallback(Locale aLocale) Check if the passed locale is directly or by fallback contained.texts()Methods inherited from interface com.helger.commons.text.IHasText
getAsHasDisplayText, getTextMethods inherited from interface com.helger.commons.text.IHasTextWithArgs
getAsHasDisplayTextWithArgs, getTextWithArgs, getTextWithArgs
-
Method Details
-
texts
- Returns:
- The Locale to text map. Never
null. - Since:
- 9.1.8
-
containsLocaleWithFallback
Check if the passed locale is directly or by fallback contained. The implementation class MUST add locale-generalisation when resolving the text ("de_DE" => "de" => default).- Parameters:
aLocale- The locale to check. May benull.- Returns:
trueif the locale is contained,falseif not.
-