Package com.iizix.translate.google
Class DetectedLanguage
- java.lang.Object
- com.iizix.translate.google.DetectedLanguage
public class DetectedLanguage extends java.lang.ObjectClass used to hold information from a Google Translate Detect Language operation.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description doubleconfidenceConfidence: the reliability number, valid only when detecting a language from a string.booleanisReliableThe reliability flag, valid only when detecting a language from a string.java.lang.StringlangIDThe language ID.LanguagelanguageThe language enum, null if not found.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()The string representation of this class.
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.