| class info |
| com.huawei.hms.mlsdk.translate.cloud.MLRemoteTranslateSetting |
| Text translation configurator. |
| Constructor name |
MLRemoteTranslateSetting(String sourceLangCode, String targetLangCode) Creates a text translation configurator instance. |
| Return type | Method name |
| Boolean | equals(Object obj) |
| String | getSourceLangCode() |
| String | getTargetLangCode() |
| int | hashCode() |
| Method |
| public MLRemoteTranslateSetting(String sourceLangCode, String targetLangCode) |
| Creates a text translation configurator instance. |
Parameters
| Parameter name | Parameter desc |
| sourceLangCode | Source language code (ISO 639-1 standard code). |
| targetLangCode | Target language code (ISO 639-1 standard code). |
| Method |
| public boolean equals(Object obj) |
| Checks whether two text translation configurator instances are equal. |
Parameters
| Parameter name | Parameter desc |
| obj | Text translation configurator instance to be compared. |
Return
| Type | desc |
| boolean | true: 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
| Type | desc |
| String | Source language code (ISO 639-1 standard code). |
| Method |
| public String getTargetLangCode() |
| Obtains the target language code. |
Return
| Type | desc |
| String | Source language code (ISO 639-1 standard code). |
| Method |
| public int hashCode() |
| Obtains the hash value of the text translation configurator instance. |
Return
| Type | desc |
| int | Returns the hash value of the text translation configurator instance. |