目录

class info
com.huawei.hms.mlsdk.translate.cloud.MLRemoteTranslateSetting
Text translation configurator.

Public Constructor Summary

Constructor name

MLRemoteTranslateSetting(String sourceLangCode, String targetLangCode)

Creates a text translation configurator instance.

Public Method Summary

Return typeMethod name
Booleanequals(Object obj)
StringgetSourceLangCode()
StringgetTargetLangCode()
inthashCode()

Public Constructors

Method
public MLRemoteTranslateSetting(String sourceLangCode, String targetLangCode)
Creates a text translation configurator instance.

Parameters

Parameter nameParameter desc
sourceLangCodeSource language code (ISO 639-1 standard code).
targetLangCodeTarget language code (ISO 639-1 standard code).

Public Methods

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

Parameters

Parameter nameParameter desc
objText translation configurator instance to be compared.

Return

Typedesc
booleantrue: Two text translation configurator instances are equal.
false: Two text translation configurator instances are not equal.
Method
public String getSourceLangCode()
Obtains the source language code.

Return

Typedesc
StringSource language code (ISO 639-1 standard code).
Method
public String getTargetLangCode()
Obtains the target language code.

Return

Typedesc
StringSource language code (ISO 639-1 standard code).
Method
public int hashCode()
Obtains the hash value of the text translation configurator instance.

Return

Typedesc
intReturns the hash value of the text translation configurator instance.