Interface IResourceBundleProvider

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IResourceBundleProvider
  • Method Details

    • getResourceBundle

      @NonNull ResourceBundle getResourceBundle(@Nullable Locale locale)
      Returns the resource bundle for the given locale. If the given locale is null, the current locale will be used.
      Parameters:
      locale - the locale to use
      Returns:
      the resource bundle for the given locale, or the current locale if null
      Throws:
      MissingResourceException - if no resource bundle for the given locale can be found.
    • getResourceBundle

      @NonNull default ResourceBundle getResourceBundle()
      Returns the resource bundle for the current locale.
      Returns:
      the resource bundle for the current locale
      Throws:
      MissingResourceException - if no resource bundle for the current locale can be found.