Interface TranslationService

All Known Implementing Classes:
TranslationServiceImpl

public interface TranslationService
  • Method Summary

    Modifier and Type
    Method
    Description
    <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.
  • Method Details

    • 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