Interface TranslationService

    • Method Detail

      • getTranslatedEntity

        <T> T getTranslatedEntity​(String language,
                                  Class<T> type,
                                  T instance)
        Get a cloned version of a GTFS entity object with fields translated as per the GTFS Translations proposed spec addition. See Translation
        Type Parameters:
        T - entity type
        Parameters:
        language - language to translate to
        type - entity type
        instance - instance to clone and translate
        Returns:
        cloned instance with the proper fields changed