Top Description Inners Fields Constructors Methods
com.ibm.icu.util

public Class GenderInfo

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
java.util.Arrays, .HashMap, .List, .Locale, .Map, .MissingResourceException, com.ibm.icu.impl.ICUCache, .ICUData, .ICUResourceBundle, .SimpleCache

Deprecated

This API is ICU internal only.

Provide information about gender in locales based on data in CLDR. Currently supplies gender of lists.
Author
markdavis
ICU Status
Internal ICU component.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static enum
GenderInfo.Gender

Deprecated This API is ICU internal only.
Gender: OTHER means either the information is unavailable, or the person has declined to state MALE or FEMALE.
public static enum
GenderInfo.ListGenderStyle

Deprecated This API is ICU internal only.
Enum only meant for use in CLDR and in testing.

Field Summary

Modifier and TypeField and Description
private static GenderInfo.Cache
private static GenderInfo
neutral

Deprecated as a consequence of GenderInfo being deprecated.
private final GenderInfo.ListGenderStyle
style

Deprecated as a consequence of GenderInfo.ListGenderStyle being deprecated.

Constructor Summary

AccessConstructor and Description
public
GenderInfo(GenderInfo.ListGenderStyle
gender style
genderStyle
)

Deprecated This API is ICU internal only.
Only for testing and use with CLDR.

Method Summary

Modifier and TypeMethod and Description
public static GenderInfo
getInstance(ULocale
desired locale
uLocale
)

Deprecated This API is ICU internal only.
Create GenderInfo from a ULocale.
public static GenderInfo
getInstance(Locale
desired locale
locale
)

Deprecated This API is ICU internal only.
Create GenderInfo from a Locale.
public GenderInfo.Gender

Returns:

the gender of the list.
getListGender
(GenderInfo.Gender...
a list of genders.
genders
)

Deprecated This API is ICU internal only.
Get the gender of a list, based on locale usage.
public GenderInfo.Gender

Returns:

the gender of the list.
getListGender
(List<GenderInfo.Gender>
a list of genders.
genders
)

Deprecated This API is ICU internal only.
Get the gender of a list, based on locale usage.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

genderInfoCacheback to summary
private static GenderInfo.Cache genderInfoCache
neutralback to summary
private static GenderInfo neutral

Deprecated

as a consequence of GenderInfo being deprecated. See corresponding docs for further information.

styleback to summary
private final GenderInfo.ListGenderStyle style

Deprecated

as a consequence of GenderInfo.ListGenderStyle being deprecated. See corresponding docs for further information.

Constructor Detail

GenderInfoback to summary
public GenderInfo(GenderInfo.ListGenderStyle genderStyle)

Deprecated

This API is ICU internal only.

Only for testing and use with CLDR.

Parameters
genderStyle:GenderInfo.ListGenderStyle

gender style

Annotations
@Deprecated
ICU Status
Internal ICU component.

Method Detail

getInstanceback to summary
public static GenderInfo getInstance(ULocale uLocale)

Deprecated

This API is ICU internal only.

Create GenderInfo from a ULocale.

Parameters
uLocale:ULocale

desired locale

Annotations
@Deprecated
ICU Status
Internal ICU component.
getInstanceback to summary
public static GenderInfo getInstance(Locale locale)

Deprecated

This API is ICU internal only.

Create GenderInfo from a Locale.

Parameters
locale:Locale

desired locale

Annotations
@Deprecated
ICU Status
Internal ICU component.
getListGenderback to summary
public GenderInfo.Gender getListGender(GenderInfo.Gender... genders)

Deprecated

This API is ICU internal only.

Get the gender of a list, based on locale usage.

Parameters
genders:GenderInfo.Gender[]

a list of genders.

Returns:GenderInfo.Gender

the gender of the list.

Annotations
@Deprecated
ICU Status
Internal ICU component.
getListGenderback to summary
public GenderInfo.Gender getListGender(List<GenderInfo.Gender> genders)

Deprecated

This API is ICU internal only.

Get the gender of a list, based on locale usage.

Parameters
genders:List<GenderInfo.Gender>

a list of genders.

Returns:GenderInfo.Gender

the gender of the list.

Annotations
@Deprecated
ICU Status
Internal ICU component.
com.ibm.icu.util back to summary

private Class GenderInfo.Cache

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ICUCache<ULocale, GenderInfo>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public GenderInfo
get(ULocale locale)

Deprecated as a consequence of GenderInfo being deprecated.
private static GenderInfo
load(ULocale ulocale)

Deprecated as a consequence of GenderInfo being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private final ICUCache<ULocale, GenderInfo> cache

Constructor Detail

Cacheback to summary
private Cache()

Method Detail

getback to summary
public GenderInfo get(ULocale locale)

Deprecated

as a consequence of GenderInfo being deprecated. See corresponding docs for further information.

loadback to summary
private static GenderInfo load(ULocale ulocale)

Deprecated

as a consequence of GenderInfo being deprecated. See corresponding docs for further information.

com.ibm.icu.util back to summary

public final Enum GenderInfo.Gender

extends Enum<GenderInfo.Gender>
Class Inheritance
Annotations
@Deprecated

Deprecated

This API is ICU internal only.

Gender: OTHER means either the information is unavailable, or the person has declined to state MALE or FEMALE.
ICU Status
Internal ICU component.

Field Summary

Modifier and TypeField and Description
public static final GenderInfo.Gender
FEMALE

Deprecated This API is ICU internal only.
public static final GenderInfo.Gender
MALE

Deprecated This API is ICU internal only.
public static final GenderInfo.Gender
OTHER

Deprecated This API is ICU internal only.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static GenderInfo.Gender
valueOf(String name)

Deprecated as a consequence of GenderInfo.Gender being deprecated.
public static GenderInfo.Gender[]
values()

Deprecated as a consequence of GenderInfo.Gender being deprecated.
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FEMALEback to summary
public static final GenderInfo.Gender FEMALE

Deprecated

This API is ICU internal only.

Annotations
@Deprecated
ICU Status
Internal ICU component.
MALEback to summary
public static final GenderInfo.Gender MALE

Deprecated

This API is ICU internal only.

Annotations
@Deprecated
ICU Status
Internal ICU component.
OTHERback to summary
public static final GenderInfo.Gender OTHER

Deprecated

This API is ICU internal only.

Annotations
@Deprecated
ICU Status
Internal ICU component.

Constructor Detail

Genderback to summary
private Gender()

Method Detail

valueOfback to summary
public static GenderInfo.Gender valueOf(String name)

Deprecated

as a consequence of GenderInfo.Gender being deprecated. See corresponding docs for further information.

valuesback to summary
public static GenderInfo.Gender[] values()

Deprecated

as a consequence of GenderInfo.Gender being deprecated. See corresponding docs for further information.

com.ibm.icu.util back to summary

public final Enum GenderInfo.ListGenderStyle

extends Enum<GenderInfo.ListGenderStyle>
Class Inheritance
Annotations
@Deprecated

Deprecated

This API is ICU internal only.

Enum only meant for use in CLDR and in testing. Indicates the category for the locale. This only affects gender for lists more than one. For lists of 1 item, the gender of the list always equals the gender of that sole item.
ICU Status
Internal ICU component.

Field Summary

Modifier and TypeField and Description
private static Map<String, GenderInfo.ListGenderStyle>
public static final GenderInfo.ListGenderStyle
MALE_TAINTS

For an empty list, returns OTHER; For a single item, returns its gender; Otherwise, gender(all female) = female, otherwise gender(list) = male.

public static final GenderInfo.ListGenderStyle
MIXED_NEUTRAL

For an empty list, returns OTHER; For a single item, returns its gender; Otherwise gender(all male) = male, gender(all female) = female, otherwise gender(list) = other.

public static final GenderInfo.ListGenderStyle
NEUTRAL

For an empty list, returns OTHER; For a single item, returns its gender; Otherwise always OTHER.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static GenderInfo.ListGenderStyle
fromName(String name)

Deprecated This API is ICU internal only.
public static GenderInfo.ListGenderStyle
valueOf(String name)

Deprecated as a consequence of GenderInfo.ListGenderStyle being deprecated.
public static GenderInfo.ListGenderStyle[]
values()

Deprecated as a consequence of GenderInfo.ListGenderStyle being deprecated.
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

fromNameMapback to summary
private static Map<String, GenderInfo.ListGenderStyle> fromNameMap
MALE_TAINTSback to summary
public static final GenderInfo.ListGenderStyle MALE_TAINTS

Deprecated

This API is ICU internal only.

For an empty list, returns OTHER; For a single item, returns its gender; Otherwise, gender(all female) = female, otherwise gender(list) = male. So for more than one item, any 'other' value makes the overall gender be 'male'.

Annotations
@Deprecated
ICU Status
Internal ICU component.
MIXED_NEUTRALback to summary
public static final GenderInfo.ListGenderStyle MIXED_NEUTRAL

Deprecated

This API is ICU internal only.

For an empty list, returns OTHER; For a single item, returns its gender; Otherwise gender(all male) = male, gender(all female) = female, otherwise gender(list) = other. So any 'other' value makes the overall gender be 'other'.

Annotations
@Deprecated
ICU Status
Internal ICU component.
NEUTRALback to summary
public static final GenderInfo.ListGenderStyle NEUTRAL

Deprecated

This API is ICU internal only.

For an empty list, returns OTHER; For a single item, returns its gender; Otherwise always OTHER.

Annotations
@Deprecated
ICU Status
Internal ICU component.

Constructor Detail

ListGenderStyleback to summary
private ListGenderStyle()

Method Detail

fromNameback to summary
public static GenderInfo.ListGenderStyle fromName(String name)

Deprecated

This API is ICU internal only.

Annotations
@Deprecated
ICU Status
Internal ICU component.
valueOfback to summary
public static GenderInfo.ListGenderStyle valueOf(String name)

Deprecated

as a consequence of GenderInfo.ListGenderStyle being deprecated. See corresponding docs for further information.

valuesback to summary
public static GenderInfo.ListGenderStyle[] values()

Deprecated

as a consequence of GenderInfo.ListGenderStyle being deprecated. See corresponding docs for further information.