Package com.helger.commons.text
Interface IMultilingualText
-
- All Superinterfaces:
IHasText,IHasTextWithArgs
- All Known Subinterfaces:
IMutableMultilingualText
- All Known Implementing Classes:
AbstractMapBasedMultilingualText,AbstractReadOnlyMapBasedMultilingualText,MultilingualText,ReadOnlyMultilingualText
@MustImplementEqualsAndHashcode public interface IMultilingualText extends IHasTextWithArgs
Read-only interface for a multilingual text- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsLocaleWithFallback(Locale aLocale)Check if the passed locale is directly or by fallback contained.ICommonsOrderedMap<Locale,String>texts()-
Methods inherited from interface com.helger.commons.text.IHasText
getAsHasDisplayText, getText
-
Methods inherited from interface com.helger.commons.text.IHasTextWithArgs
getAsHasDisplayTextWithArgs, getTextWithArgs, getTextWithArgs
-
-
-
-
Method Detail
-
texts
@Nonnull @ReturnsMutableObject ICommonsOrderedMap<Locale,String> texts()
- Returns:
- The Locale to text map. Never
null. - Since:
- 9.1.8
-
containsLocaleWithFallback
boolean containsLocaleWithFallback(@Nullable Locale aLocale)
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.
-
-