Class LanguageApiImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ATTR_UI  
      static java.lang.String METHOD_GET_LANGS  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Languages all()
      Gets a list of translation directions and available languages supported by the service.
      Languages all​(Language ui)
      Gets a list of translation directions and available languages supported by the service.
      Languages all​(java.lang.String ui)
      Gets a list of translation directions and available languages supported by the service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LanguageApiImpl

        public LanguageApiImpl​(ApiContext context)
    • Method Detail

      • all

        @Nonnull
        public Languages all()
        Gets a list of translation directions and available languages supported by the service. In this case, language names (Language.name()) are not fetched from the Yandex.Translate service.
        Specified by:
        all in interface LanguageApi
        Returns:
        information about available languages and directions of translation
      • all

        @Nonnull
        public Languages all​(@Nullable
                             Language ui)
        Gets a list of translation directions and available languages supported by the service.
        Specified by:
        all in interface LanguageApi
        Parameters:
        ui - if set, the response contains explanations of language codes
        Returns:
        information about available languages and directions of translation
      • all

        @Nonnull
        public Languages all​(@Nullable
                             java.lang.String ui)
        Gets a list of translation directions and available languages supported by the service.
        Specified by:
        all in interface LanguageApi
        Parameters:
        ui - if set, the response contains explanations of language codes
        Returns:
        information about available languages and directions of translation