Class DetectedLanguage


  • public class DetectedLanguage
    extends java.lang.Object
    Class used to hold information from a Google Translate Detect Language operation.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      doubleconfidence
      Confidence: the reliability number, valid only when detecting a language from a string.
      booleanisReliable
      The reliability flag, valid only when detecting a language from a string.
      java.lang.StringlangID
      The language ID.
      Languagelanguage
      The language enum, null if not found.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.StringtoString()
      The string representation of this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • langID

        public final java.lang.String langID
        The language ID.
      • language

        public final Language language
        The language enum, null if not found.
      • isReliable

        public final boolean isReliable
        The reliability flag, valid only when detecting a language from a string.
      • confidence

        public final double confidence
        Confidence: the reliability number, valid only when detecting a language from a string.
    • Method Detail

      • toString

        public java.lang.String toString()
        The string representation of this class.
        Overrides:
        toString in class java.lang.Object