Class DetectedLanguage

java.lang.Object
com.iizix.translate.google.DetectedLanguage

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

    • langID

      public final 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 Details

    • toString

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