IdentifiedLanguage

public final class IdentifiedLanguage extends Object

Public Method Summary

boolean
equals(Object o)
Indicates whether some other object is "equal to" this one.
float
getConfidence()
Returns the confidence score associated with the language.
String
getLanguageTag()
Returns the BCP 47 language tag for the language.
int
hashCode()
Returns a hash code value for the object.
String

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public boolean equals (Object o)

Indicates whether some other object is "equal to" this one.

public float getConfidence ()

Returns the confidence score associated with the language. The value is between 0 and 1, and greater or equal to the confidence threshold specified for LanguageIdentifier.identifyPossibleLanguages(String) in LanguageIdentificationOptions.

public String getLanguageTag ()

Returns the BCP 47 language tag for the language.

Returns LanguageIdentifier.UNDETERMINED_LANGUAGE_TAG if no language is detected.

public int hashCode ()

Returns a hash code value for the object.

public String toString ()