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 Details

    • 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 be null.
      Returns:
      true if the locale is contained, false if not.