Interface Translatable

    • Method Detail

      • getTranslation

        <T extends Translation> T getTranslation​(String language)
        Gets a translation in the specified language about some textual properties of the object. If no such translation exists, then returns the default translation of the object.
        Type Parameters:
        T - the concrete type of the translation.
        Parameters:
        language - the ISO 631-1 code of a language.
        Returns:
        a translation of the object in the given language. Can be never null.