# IdentifiedLanguage

public final class **IdentifiedLanguage** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
A language identified by `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier#identifyPossibleLanguages(java.lang.String)`.

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/IdentifiedLanguage#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) o) Indicates whether some other object is "equal to" this one. |
| float | [getConfidence](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/IdentifiedLanguage#getConfidence())() Returns the confidence score associated with the language. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getLanguageTag](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/IdentifiedLanguage#getLanguageTag())() Returns the [BCP 47](https://tools.ietf.org/html/bcp47) language tag for the language. |
| int | [hashCode](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/IdentifiedLanguage#hashCode())() Returns a hash code value for the object. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [toString](https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/IdentifiedLanguage#toString())() |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) 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 `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier#identifyPossibleLanguages(java.lang.String)` in `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentificationOptions`.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getLanguageTag** ()

Returns the [BCP 47](https://tools.ietf.org/html/bcp47) language tag for the
language.

Returns `https://developers.google.com/android/reference/com/google/mlkit/nl/languageid/LanguageIdentifier#UNDETERMINED_LANGUAGE_TAG` if no language is detected.

#### public int **hashCode** ()

Returns a hash code value for the object.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **toString** ()