Class TranslatorAPIFactory


  • public class TranslatorAPIFactory
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      static TranslatorAPI getTranslatorAPI​(java.lang.String translator, java.lang.String apiKey)
      Factory pattern to instantiate a translator class.
      • Methods inherited from class java.lang.Object

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

      • TranslatorAPIFactory

        public TranslatorAPIFactory()
    • Method Detail

      • getTranslatorAPI

        public static TranslatorAPI getTranslatorAPI​(java.lang.String translator,
                                                     java.lang.String apiKey)
        Factory pattern to instantiate a translator class.
        Parameters:
        translator - Translator API.
        apiKey - Api-key to authorize the method.
        Returns:
        Returns an instance of the translator class.