MLLocalTranslatorModel

class info
com.huawei.hms.mlsdk.translate.local.MLLocalTranslatorModel
Local offline text translation model.

Public Method Summary

Return typeMethod name
booleanequals(Object obj)
StringgetLanguageCode()
inthashCode()

Public Methods

Method
public boolean equals(Object obj)
Checks whether two instances are equal.

Parameters

Parameter nameParameter desc
objInstance to be compared.

Return

Typedesc
booleantrue if the two instances are equal; false otherwise.
Method
public String getLanguageCode()
Obtains the target language code (ISO 639-1 standard) of the model.

Return

Typedesc
StringTarget language code (ISO 639-1 standard).
Method
public int hashCode()
Obtains the hash value of the current instance.

Return

Typedesc
intHash value of the current instance.
Search
Enter a keyword.