|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.icu.util.GenderInfo
public class GenderInfo
Provide information about gender in locales based on data in CLDR. Currently supplies gender of lists.
| Nested Class Summary | |
|---|---|
static class |
GenderInfo.Gender
Gender: OTHER means either the information is unavailable, or the person has declined to state MALE or FEMALE. |
static class |
GenderInfo.ListGenderStyle
Enum only meant for use in CLDR and in testing. |
| Constructor Summary | |
|---|---|
GenderInfo(GenderInfo.ListGenderStyle genderStyle)
Only for testing and use with CLDR. |
|
| Method Summary | |
|---|---|
static GenderInfo |
getInstance(Locale locale)
Create GenderInfo from a Locale. |
static GenderInfo |
getInstance(ULocale uLocale)
Create GenderInfo from a ULocale. |
GenderInfo.Gender |
getListGender(GenderInfo.Gender... genders)
Get the gender of a list, based on locale usage. |
GenderInfo.Gender |
getListGender(List<GenderInfo.Gender> genders)
Get the gender of a list, based on locale usage. |
static void |
setLocaleMapping(Map<ULocale,GenderInfo> newULocaleToListGender)
Reset the data used for mapping locales to styles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenderInfo(GenderInfo.ListGenderStyle genderStyle)
genderStyle - gender style| Method Detail |
|---|
public static GenderInfo getInstance(ULocale uLocale)
uLocale - desired localepublic static GenderInfo getInstance(Locale locale)
locale - desired localepublic static void setLocaleMapping(Map<ULocale,GenderInfo> newULocaleToListGender)
newULocaleToListGender - replacement data, copied internally for safety.public GenderInfo.Gender getListGender(GenderInfo.Gender... genders)
genders - a list of genders.
public GenderInfo.Gender getListGender(List<GenderInfo.Gender> genders)
genders - a list of genders.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||