Interface Localizable

  • 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 Localizable
    A localizable string.
    Author:
    leadpony
    • Method Detail

      • getLocalized

        default String getLocalized()
        Returns the string localized for the current locale.
        Returns:
        the localized string, never be null.
      • getLocalized

        String getLocalized​(Locale locale)
        Returns the string localized for the specified locale.
        Parameters:
        locale - the locale for which the source string to be localized. This cannot be null.
        Returns:
        the localized string, never be null.
        Throws:
        NullPointerException - if the specified locale is null.