public class LocaleProfile extends Object
The profile includes an array of user-preferred locales.
| 构造器 | 说明 |
|---|---|
LocaleProfile(Locale[] locales) |
A constructor used to create a
LocaleProfile instance based on an array of locales. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
equals(Object object) |
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.
|
String |
toString() |
Converts the locales array to string.
|
public LocaleProfile(Locale[] locales)
LocaleProfile instance based on an array of locales.locales - Indicates the array of locales.public Locale[] getLocales()
public boolean equals(Object object)
equals 在类中 Objectobject - the provided LocaleProfileObject.hashCode(),
HashMappublic int hashCode()
hashCode 在类中 ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)