public class LanguageResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LanguageResult |
NULL |
Constructor and Description |
---|
LanguageResult(java.lang.String language,
LanguageConfidence confidence,
float rawScore) |
Modifier and Type | Method and Description |
---|---|
LanguageConfidence |
getConfidence() |
java.lang.String |
getLanguage()
The ISO 639-1 language code (plus optional country code)
|
float |
getRawScore() |
boolean |
isLanguage(java.lang.String language)
Return true if the target language matches the detected language.
|
boolean |
isReasonablyCertain() |
boolean |
isUnknown() |
java.lang.String |
toString() |
public static final LanguageResult NULL
public LanguageResult(java.lang.String language, LanguageConfidence confidence, float rawScore)
language
- ISO 639-1 language code (plus optional country code)rawScore
- confidence of detector in the result.public java.lang.String getLanguage()
public float getRawScore()
public LanguageConfidence getConfidence()
public boolean isReasonablyCertain()
public boolean isUnknown()
public boolean isLanguage(java.lang.String language)
language
- public java.lang.String toString()
toString
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"