智能客服
你问我答,随时在线为你解决问题
| |---ohos.global.configuration.LocaleProfile public class LocaleProfile extends Object |
The profile includes an array of user-preferred locales.
Since:
3Constructor | Description |
|---|---|
LocaleProfile(Locale[] locales) | A constructor used to create a LocaleProfile instance based on an array of locales. |
Modifier and Type | Method | Description |
|---|---|---|
boolean | Check whether the provided LocaleProfile is equal to the current localeProfile or not. | |
Locale[] | getLocales() | Obtains the array of locales. |
int | hashCode() | Obtains hashcode of the locales array. |
toString() | Converts the locales array to string. |
public LocaleProfile(Locale[] locales)
A constructor used to create a LocaleProfile instance based on an array of locales.Parameters:
Parameter Name | Parameter Description |
|---|---|
locales | Indicates the array of locales. |
Since:
3
public Locale[] getLocales()
Obtains the array of locales.Returns:
Returns a cloned copy of the array of locales.
public boolean equals(Object object)
Check whether the provided LocaleProfile is equal to the current localeProfile or not.Overrides:
Parameters:
Parameter Name | Parameter Description |
|---|---|
object | the provided LocaleProfile |
Returns:
true if the provided LocaleProfile is equal to the current localeProfile, vice versa.
See Also:
public int hashCode()
Obtains hashcode of the locales array.Overrides:
Returns:
hashcode of the locales array.
See Also:
Object.equals(java.lang.Object), System.identityHashCode(java.lang.Object)