Class LanguageGetter.Dummy

    • Constructor Detail

      • Dummy

        public Dummy()
    • Method Detail

      • getLanguage

        public Locale getLanguage​(Object document)
        Description copied from interface: LanguageGetter
        Extracts the language from the given document. If the document cannot be associated with a language, null should be returned.
        Specified by:
        getLanguage in interface LanguageGetter<Object>
        Parameters:
        document - the document
        Returns:
        the document's language