-
- 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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetLocalized()Returns the string localized for the current locale.StringgetLocalized(Locale locale)Returns the string localized for the specified locale.
-
-
-
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 benull.- Returns:
- the localized string, never be
null. - Throws:
NullPointerException- if the specifiedlocaleisnull.
-
-