BestSolution.at public p2 repository
TranslationFunction
at.bestsolution.framework.grid.func

Interface TranslationFunction

  • All Known Implementing Classes:
    CompositeTranslationFunction
    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 TranslationFunction
    Translate the key
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      @Nullable java.lang.String translate(@NonNull java.util.Locale locale, @NonNull java.lang.String key)
      Translate the given key in to the locale
    • Method Detail

      • translate

        @Nullable java.lang.String translate(@NonNull java.util.Locale locale,
                                             @NonNull java.lang.String key)
        Translate the given key in to the locale
        Parameters:
        locale - the locale
        key - the key
        Returns:
        the translated string